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)
Westwood Portable Retainer Case for Elderly Dentures and Children's Orthodontic Correctors, Storage Box

Westwood Portable Retainer Case for Elderly Dentures and Children's Orthodontic Correctors, Storage Box

$14.20

PELICAN 1510 Protective Safety Case with Trolley - Waterproof Travel Box for Outdoor Photography Gear

PELICAN 1510 Protective Safety Case with Trolley - Waterproof Travel Box for Outdoor Photography Gear

$1,360.00

Haisen [Exclusive Purchase Link] Livestream Link for New Arrivals and Clearance - Incense Sticks, Coil Incense, Agarwood, Sandalwood, Powder, Burners

Haisen [Exclusive Purchase Link] Livestream Link for New Arrivals and Clearance - Incense Sticks, Coil Incense, Agarwood, Sandalwood, Powder, Burners

$13.80

Ultralight Silicone-Coated Waterproof Dry Bag for Outdoor River Trekking, Rafting, Swimming, Beach Use – Wet/Dry Separation Storage for Swimwear and Towels

Ultralight Silicone-Coated Waterproof Dry Bag for Outdoor River Trekking, Rafting, Swimming, Beach Use – Wet/Dry Separation Storage for Swimwear and Towels

$38.20

Food Warmer Cabinet, Room Temperature Commercial Constant-Temperature Display Case, Egg Tart Heating Cabinet, Small Countertop Sample Retention Cabinet, Chestnut, White

Food Warmer Cabinet, Room Temperature Commercial Constant-Temperature Display Case, Egg Tart Heating Cabinet, Small Countertop Sample Retention Cabinet, Chestnut, White

$239.00

Ultra-Narrow 8/9/10cm Bathroom and Kitchen Gap Storage Rack with Wheels

Ultra-Narrow 8/9/10cm Bathroom and Kitchen Gap Storage Rack with Wheels

$15.90

Glow-in-the-Dark 3D Printing Pen for Kids, Low-Temperature Stereoscopic Graffiti Magic Pen, Drawing Toy, Birthday Gift for Girls

Glow-in-the-Dark 3D Printing Pen for Kids, Low-Temperature Stereoscopic Graffiti Magic Pen, Drawing Toy, Birthday Gift for Girls

$21.80

Custom Insulated Steel Pipes from Factory - Heating Pipes for Residential Complexes, Spiral Insulated Pipes, Polyurethane Insulated Pipes

Custom Insulated Steel Pipes from Factory - Heating Pipes for Residential Complexes, Spiral Insulated Pipes, Polyurethane Insulated Pipes

$45.40

New Pirelli Tires 305/40R20 112V & 275/45R20 110V XL N1 for Porsche Cayenne

New Pirelli Tires 305/40R20 112V & 275/45R20 110V XL N1 for Porsche Cayenne

$1,409.00

Over-Toilet Storage Rack Wall-Mounted No-Drill Bathroom Multi-Function Organizer for Toilet Essentials

Over-Toilet Storage Rack Wall-Mounted No-Drill Bathroom Multi-Function Organizer for Toilet Essentials

$20.50

Kang Kati Gardenia Tea Scented Candle Gift Set – Long-Lasting Fragrance, Elegant Birthday Gift for Her

Kang Kati Gardenia Tea Scented Candle Gift Set – Long-Lasting Fragrance, Elegant Birthday Gift for Her

$35.10

Safety Self-Locking Lifting Hook with Adjustable Chain for Hoisting and Rigging

Safety Self-Locking Lifting Hook with Adjustable Chain for Hoisting and Rigging

$140.00

Thickened Mobile Phone Waterproof Case, Waterproof Box, Sealed Container, Pressure-Resistant Box, EDC Drop-Proof Storage Box for Outdoor Travel

Thickened Mobile Phone Waterproof Case, Waterproof Box, Sealed Container, Pressure-Resistant Box, EDC Drop-Proof Storage Box for Outdoor Travel

$12.00

Commercial Heated Display Cabinet for Crispy Pork Belly, Roast Chicken, and Cantonese BBQ - Constant Temperature Warmer for Peking Duck

Commercial Heated Display Cabinet for Crispy Pork Belly, Roast Chicken, and Cantonese BBQ - Constant Temperature Warmer for Peking Duck

$1,394.00

Mejiang Baohong Watercolor Line Art for Beginners, Coloring Book with Colored Pencils and Markers, Cat Letter Theme

Mejiang Baohong Watercolor Line Art for Beginners, Coloring Book with Colored Pencils and Markers, Cat Letter Theme

$29.70

Shanghai Huamei Hair Transplant, Solution for Hair Loss, Thinning, and Density Enhancement

Shanghai Huamei Hair Transplant, Solution for Hair Loss, Thinning, and Density Enhancement

$6,750.00

New Direct Sale Nanda Silicone Rubber 704 Battery Fixative Adhesive Panel Light Special Glue Photovoltaic Solar Sealant

New Direct Sale Nanda Silicone Rubber 704 Battery Fixative Adhesive Panel Light Special Glue Photovoltaic Solar Sealant

$25.85

Yonghe Hair Transplant: Top Scalp Density Enhancement (2000+ Units Fixed Price)

Yonghe Hair Transplant: Top Scalp Density Enhancement (2000+ Units Fixed Price)

$33,800.00

No-Drill Bathroom Storage Rack – Toilet Paper Organizer for Dorms and Restrooms

No-Drill Bathroom Storage Rack – Toilet Paper Organizer for Dorms and Restrooms

$22.16

Premium Metallographic Polishing Cloth – White Short-Pile Velvet for Mirror Finish Grinding by Goral

Premium Metallographic Polishing Cloth – White Short-Pile Velvet for Mirror Finish Grinding by Goral

$35.00

Rock Guitar Hell Training: Electric Guitar Textbook and Tutorial by Shinichi Kobayashi, Beginner to Intermediate Chinese Guitar Book and Sheet Music

Rock Guitar Hell Training: Electric Guitar Textbook and Tutorial by Shinichi Kobayashi, Beginner to Intermediate Chinese Guitar Book and Sheet Music

$58.69

Aromatherapy Candle Resin Jelly Wax Strawberry Silicone Mold, Large Squishy Handmade Soap DIY Material

Aromatherapy Candle Resin Jelly Wax Strawberry Silicone Mold, Large Squishy Handmade Soap DIY Material

$1.90

Liboer Drill-Free Security Camera Mount & Router Shelf – Adhesive-Free Wall Bracket for 360 PTZ Cameras and Sockets

Liboer Drill-Free Security Camera Mount & Router Shelf – Adhesive-Free Wall Bracket for 360 PTZ Cameras and Sockets

$21.90

City Hunter Theme Song Mr. Chui Saxophone Three-Piece Precise Transcription Service

City Hunter Theme Song Mr. Chui Saxophone Three-Piece Precise Transcription Service

$16.00

[Deposit Group 12] New Colors: Hugging Bear Matte Low-Mid Heel Lolita Shoes - Sheep Puff with Bear Buckle

[Deposit Group 12] New Colors: Hugging Bear Matte Low-Mid Heel Lolita Shoes - Sheep Puff with Bear Buckle

$38.00

Handcrafted Peach Wood and Brass Baby Rattle - Non-Toxic Paint-Free Teething Toy for Infants

Handcrafted Peach Wood and Brass Baby Rattle - Non-Toxic Paint-Free Teething Toy for Infants

$32.00

Car Tire Stone Removal Hook - Debris Cleaning Tool for Wheels

Car Tire Stone Removal Hook - Debris Cleaning Tool for Wheels

$6.19

Ceramic Rabbit Egg Holder – Creative Irregular Egg Stand for Breakfast or as a Decorative Gift

Ceramic Rabbit Egg Holder – Creative Irregular Egg Stand for Breakfast or as a Decorative Gift

$33.82

Toilet Tank Side Shelf Bathroom Storage Rack No-Drill Organizer for Bathroom Essentials

Toilet Tank Side Shelf Bathroom Storage Rack No-Drill Organizer for Bathroom Essentials

$10.40

No-Drill Over-Toilet Storage Rack for Bathroom Restroom Organizer

No-Drill Over-Toilet Storage Rack for Bathroom Restroom Organizer

$8.90