Skip to main content
Home / Sensors / [Youxin Electronics] GP2Y0E03 Infrared Distance Sensor Module 4-50cm Range

Attributes

Brand -
Category Robotics / STEM Teaching Tools / Sensors
Origin -
Brand Youxin Electronics
Model Number GP2Y0E03
Sensor Type Infrared Distance Sensor
Detection Range 4 cm to 50 cm
Output Interface I2C Digital Output
Operating Voltage 3.3V / 5V DC
Resolution 1 mm
Response Time Typically 15 ms
Dimensions 23 x 17 x 6 mm
Application Robotics, Obstacle Avoidance, Level Sensing

6 reviews

A

Anonymous

Mar 28, 2026

Rating: 5/5

Reliable and consistent readings

I bought three of these for a line-following robot upgrade. All three performed identically with no calibration drift over two weeks of testing. The build quality feels solid.

A

Anonymous

Mar 27, 2026

Rating: 5/5

Best IR sensor in this price range

I have tried several brands, and this Genuine GP2Y0E03 module offers the best stability. The digital output saves a lot of processing time compared to analog sensors. Will buy again.

A

Anonymous

Mar 27, 2026

Rating: 4/5

Good value, easy to integrate

Great little sensor for the price. Integration was straightforward using existing libraries. Only giving 4 stars because the wiring diagram on the package was a bit faint, but online resources helped.

A

Anonymous

Mar 07, 2026

Rating: 4/5

Works well but sensitive to sunlight

The sensor is great indoors, but I noticed some noise in the readings when used near a window with direct sunlight. Once shielded, it worked perfectly. Just something to keep in mind for outdoor use.

A

Anonymous

Mar 06, 2026

Rating: 5/5

Excellent for university projects

Used this for my final year embedded systems project. It provided the precision needed for our automated sorting mechanism. Delivery from Youxin Electronics was also very fast.

A

Anonymous

Mar 03, 2026

Rating: 5/5

Perfect for my Arduino robot project

This sensor works flawlessly with my Arduino Uno. The I2C communication is stable, and the range detection is very accurate within the specified 4-50cm limits. Highly recommended for hobbyists.

5 FAQ

Q: What is the minimum object size it can detect?

A: While the range is 4-50cm, the object should ideally be at least 1cm x 1cm with a reflective surface for reliable detection at the closer end of the spectrum.

Q: Does this come with connecting wires?

A: The module typically comes with header pins soldered or unsoldered depending on the specific batch option selected, but jumper wires are not included in the package.

Q: Is there a library available for ESP32?

A: Yes, there are several open-source libraries available on GitHub and the Arduino Library Manager that support the GP2Y0E03 for ESP32 microcontrollers.

Q: Can I use this to measure liquid levels in a tank?

A: Yes, it can be used for non-contact liquid level sensing provided the liquid surface is relatively calm and the sensor is mounted above the maximum fill line within the 50cm range.

Q: Is this sensor compatible with Raspberry Pi?

A: Yes, the GP2Y0E03 uses an I2C interface which is fully compatible with Raspberry Pi models. You just need to enable the I2C port in your configuration settings.

Explore your interests

View More
All Categories
Best Seller (30)
New List (30)
Portable Tire Stone Removal Tool - Essential Handheld Hook for Car Owners

Portable Tire Stone Removal Tool - Essential Handheld Hook for Car Owners

$13.73

Factory Direct Longan 160 Curved Hot Stamping Machine Fully Automatic Hot Foil Printer Pneumatic Heat Press Leather Embossing Machine

Factory Direct Longan 160 Curved Hot Stamping Machine Fully Automatic Hot Foil Printer Pneumatic Heat Press Leather Embossing Machine

$10,000.00

Bean Sprout Germinator Tray, Hydroponic Vegetable Growing Container, Soil-Free Pea Sprouting Pot

Bean Sprout Germinator Tray, Hydroponic Vegetable Growing Container, Soil-Free Pea Sprouting Pot

$14.06

TOPTOY Crayon Shin-chan Memory Echo Series Blind Box - Anime Figure Collectible Toy and Birthday Gift

TOPTOY Crayon Shin-chan Memory Echo Series Blind Box - Anime Figure Collectible Toy and Birthday Gift

$47.20

Natural Lightning Cat's Eye Yellow Tiger Eye Loose Beads, Single Crystal Beads for DIY Bracelets and Accessories

Natural Lightning Cat's Eye Yellow Tiger Eye Loose Beads, Single Crystal Beads for DIY Bracelets and Accessories

$3.91

Pirelli Tire 235/55R19, Original Equipment for Mercedes-Benz GLC, Genuine Tire Compatible with Audi/Land Rover/etc.

Pirelli Tire 235/55R19, Original Equipment for Mercedes-Benz GLC, Genuine Tire Compatible with Audi/Land Rover/etc.

$512.00

Biliansheng Hair Transplant: No-Shave Hairline Restoration, Top Thinning Density Enhancement, Nationwide Chain

Biliansheng Hair Transplant: No-Shave Hairline Restoration, Top Thinning Density Enhancement, Nationwide Chain

$9,999.00

Luru Authentic 15-Note Steel Tongue Drum - Professional Grade for Beginners, Adults, and Children

Luru Authentic 15-Note Steel Tongue Drum - Professional Grade for Beginners, Adults, and Children

$500.00

MOOCAT [Postage Stamp Stub] Hand-Drawn Blank Irregular Wood Pulp Fine-Texture Paper for Cyanotype, OC Signing, and Collage

MOOCAT [Postage Stamp Stub] Hand-Drawn Blank Irregular Wood Pulp Fine-Texture Paper for Cyanotype, OC Signing, and Collage

$9.90

Used Car Tires - Sizes 155/165/175/185/195/205/215 for 13/14/15/16 inch Rims

Used Car Tires - Sizes 155/165/175/185/195/205/215 for 13/14/15/16 inch Rims

$140.00

Pin Puller Extractor Mechanical Repair Tool Bearing Puller and Locating Pin Extractor

Pin Puller Extractor Mechanical Repair Tool Bearing Puller and Locating Pin Extractor

$76.50

Water Brush Pen Set with Large Capacity - Essential Tools for Beginners Using Gouache, Solid Watercolor Paints, and Line Drawing; Perfect for Art Students

Water Brush Pen Set with Large Capacity - Essential Tools for Beginners Using Gouache, Solid Watercolor Paints, and Line Drawing; Perfect for Art Students

$32.00

C9335 Automotive Brake Disc Lathe – Resurfacing, Boring, Grinding & Polishing Machine

C9335 Automotive Brake Disc Lathe – Resurfacing, Boring, Grinding & Polishing Machine

$16,005.00

Jaguar Tire Lug Nuts Compatible with XE/XF/XJL/F-TYPE/F-PACE - Wheel Hub Screw Caps for Modification

Jaguar Tire Lug Nuts Compatible with XE/XF/XJL/F-TYPE/F-PACE - Wheel Hub Screw Caps for Modification

$118.00

Three-Hook Tire Stone Removal Tool, Wheel Groove Cleaner for Removing Stones from Vehicle Tires

Three-Hook Tire Stone Removal Tool, Wheel Groove Cleaner for Removing Stones from Vehicle Tires

$4.80

Pad Printer Accessories: 4-Inch Blade Clamp, Blade Holder, and Doctor Blade Assembly

Pad Printer Accessories: 4-Inch Blade Clamp, Blade Holder, and Doctor Blade Assembly

$5.40

3M Industrial Scouring Pad 7447C, Metal Rust Removal, Stainless Steel Brushing and Polishing Cloth

3M Industrial Scouring Pad 7447C, Metal Rust Removal, Stainless Steel Brushing and Polishing Cloth

$4.00

Qinghe Blazing Rose Series

Qinghe Blazing Rose Series

$1,580.00

Cheddar Cheese Production Line, Front-End Processing and Deep Processing Machinery, Mozzarella Cheese Equipment

Cheddar Cheese Production Line, Front-End Processing and Deep Processing Machinery, Mozzarella Cheese Equipment

$25,480.00

MGQ Konjac Noodle Bubble Cleaning Machine, Fully Automatic Soaking and Lifting Washer

MGQ Konjac Noodle Bubble Cleaning Machine, Fully Automatic Soaking and Lifting Washer

$17,555.40

Industrial Large Meat Grinder Fresh Meat Mince Chopper Fruit Vegetable Crusher Meat Grinding and Mixing Integrated Meat Filling Mixer

Industrial Large Meat Grinder Fresh Meat Mince Chopper Fruit Vegetable Crusher Meat Grinding and Mixing Integrated Meat Filling Mixer

$32,030.00

Zhuolide D-302 UV Glue - Invisible Adhesive for Transparent Glass, Metal, Coffee Tables, and Crystal Glass, 250g Large Capacity

Zhuolide D-302 UV Glue - Invisible Adhesive for Transparent Glass, Metal, Coffee Tables, and Crystal Glass, 250g Large Capacity

$130.00

Hell Training Rock Guitar by Shinichi Kobayashi: Electric Guitar Tutorial for Speed Playing

Hell Training Rock Guitar by Shinichi Kobayashi: Electric Guitar Tutorial for Speed Playing

$106.00

[Buy One Get One Free] Natural Agarwood, Sandalwood, and Cypress Incense Powder Set with Electric Burner

[Buy One Get One Free] Natural Agarwood, Sandalwood, and Cypress Incense Powder Set with Electric Burner

$8.42

Quilt Storage Bag – Large-Capacity Waterproof & Moisture-Proof Moving Pack for Clothes, Luggage, and Comforters

Quilt Storage Bag – Large-Capacity Waterproof & Moisture-Proof Moving Pack for Clothes, Luggage, and Comforters

$10.10

Ins-Style Cute Quilted Cotton Camera Storage Bag for CCD and Instant Cameras, Soft Drop-Proof Dust-Proof Small Pouch

Ins-Style Cute Quilted Cotton Camera Storage Bag for CCD and Instant Cameras, Soft Drop-Proof Dust-Proof Small Pouch

$8.50

Gongma Car Tire Stone Removal Tool Set, Tire Cleaning Hook, Multi-Function Stone Picker and Extractor

Gongma Car Tire Stone Removal Tool Set, Tire Cleaning Hook, Multi-Function Stone Picker and Extractor

$40.00

Feileniao 'Competing Beauties' Traditional Chinese Painting Gift Set - Gongbi Line Drawing DIY Kit for Beginners & New Year Gifts

Feileniao 'Competing Beauties' Traditional Chinese Painting Gift Set - Gongbi Line Drawing DIY Kit for Beginners & New Year Gifts

$41.60

9A Natural Ice-Grade Aquamarine Loose Beads - Handmade DIY Bracelets and Necklaces for Women, Devil Blue Crystal Single Bead

9A Natural Ice-Grade Aquamarine Loose Beads - Handmade DIY Bracelets and Necklaces for Women, Devil Blue Crystal Single Bead

$23.10

High-Precision Digital Tire Pressure Gauge with Large Display for Car Inflation

High-Precision Digital Tire Pressure Gauge with Large Display for Car Inflation

$49.50