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

All Categories
Best Seller (30)
New List (30)
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

Premium Factory Price Low-Temp 3D Printing Pen (2-Pack) - Compatible with PCL Filament

Premium Factory Price Low-Temp 3D Printing Pen (2-Pack) - Compatible with PCL Filament

$67.91

Music Theory Book Jazz Theory Introduction Volume 1 Jazz Teaching Theoretical Knowledge Basic Textbook Tutorial HD Electronic Version

Music Theory Book Jazz Theory Introduction Volume 1 Jazz Teaching Theoretical Knowledge Basic Textbook Tutorial HD Electronic Version

$5.00

Extra-Large Transparent Plastic Storage Box with Lid, Home Organizer for Clothes and Household Items

Extra-Large Transparent Plastic Storage Box with Lid, Home Organizer for Clothes and Household Items

$4.80

Baijiali Artistic Eyebrow Hair Transplant: Bilateral Filling for Sparse Areas, Dense and Natural-Looking Results

Baijiali Artistic Eyebrow Hair Transplant: Bilateral Filling for Sparse Areas, Dense and Natural-Looking Results

$7,800.00

Plastic U-Shaped Trough Mold for Yam Cultivation, Directional Shallow Growth Slots (100 Pieces, Free Shipping)

Plastic U-Shaped Trough Mold for Yam Cultivation, Directional Shallow Growth Slots (100 Pieces, Free Shipping)

$31.40

Maikeku Commercial Slow Juicer, Large Pulp-Separating Juice Extractor with High Power, Wide Mouth, Fully Automatic for Street Vending

Maikeku Commercial Slow Juicer, Large Pulp-Separating Juice Extractor with High Power, Wide Mouth, Fully Automatic for Street Vending

$7,456.32

Continental CSC5 Tire 245/50R18 104V MO-V for Mercedes-Benz Viano, Vito, V260

Continental CSC5 Tire 245/50R18 104V MO-V for Mercedes-Benz Viano, Vito, V260

$882.00

English Vocabulary Flashcards for Classroom Teaching - Categories Include Weather, Days, Months, Clothing, Home, Seasons, Fruits, Food, and Professions

English Vocabulary Flashcards for Classroom Teaching - Categories Include Weather, Days, Months, Clothing, Home, Seasons, Fruits, Food, and Professions

$8.42

Cabinet Storage Box, Foldable Rattan-Style Basket for Countertop Snacks, Clothes, and Toys

Cabinet Storage Box, Foldable Rattan-Style Basket for Countertop Snacks, Clothes, and Toys

$19.90

Custom PVC Sign Letters, Advertising Signs, Branding Wall Characters, Snowflake Board, Acrylic Crystal Letters for Background Walls

Custom PVC Sign Letters, Advertising Signs, Branding Wall Characters, Snowflake Board, Acrylic Crystal Letters for Background Walls

$5.00

Specialized Vegetable Growing Box - Foam Balcony Planter, Rectangular Plastic Pot for Home Gardening

Specialized Vegetable Growing Box - Foam Balcony Planter, Rectangular Plastic Pot for Home Gardening

$41.70

Fully Protected Smart Battery Tester - Performance Detector for Electric Vehicle and Car Batteries

Fully Protected Smart Battery Tester - Performance Detector for Electric Vehicle and Car Batteries

$286.00

Custom Engineering Drainage Pipes Large-Diameter Metal Steel Corrugated Pipes Integrated Assembly Corrugated Pipe Culverts Bridge Culverts

Custom Engineering Drainage Pipes Large-Diameter Metal Steel Corrugated Pipes Integrated Assembly Corrugated Pipe Culverts Bridge Culverts

$61.11

Water Curtain Paint Booth - 3-Meter Spray Station with Water Circulation for Paint Mist Purification, Eco-Friendly Dust Removal, 1-Meter Small Water Curtain Cabinet

Water Curtain Paint Booth - 3-Meter Spray Station with Water Circulation for Paint Mist Purification, Eco-Friendly Dust Removal, 1-Meter Small Water Curtain Cabinet

$1,980.00

Portable Cleaning and Storage Box for Elderly Dentures, Compact Case for Full-Set False Teeth Soaking and Storage

Portable Cleaning and Storage Box for Elderly Dentures, Compact Case for Full-Set False Teeth Soaking and Storage

$32.22

RC Model A07 PNP FPV Analog/Digital Racing Drone 7-Inch Aerial Photography Quadcopter Frame

RC Model A07 PNP FPV Analog/Digital Racing Drone 7-Inch Aerial Photography Quadcopter Frame

$1,643.00

ACCSOON SeeMo Monitor Converter for iPhone and iPad, Real-Time Monitoring and Live Streaming

ACCSOON SeeMo Monitor Converter for iPhone and iPad, Real-Time Monitoring and Live Streaming

$1,059.00

Solenoid Valve Initial Inspection Test Bench / Solenoid Valve Leakage Test Bench / Solenoid Valve Airtightness Test Bench

Solenoid Valve Initial Inspection Test Bench / Solenoid Valve Leakage Test Bench / Solenoid Valve Airtightness Test Bench

$7,482.00

Factory Direct Hardware Screw and Parts Automatic Weighing and Packaging Machine, Vertical Weighing and Packing Equipment

Factory Direct Hardware Screw and Parts Automatic Weighing and Packaging Machine, Vertical Weighing and Packing Equipment

$36,860.00

Commercial Heated Beverage Cabinet, Small Countertop Display Warmer with Constant Temperature for Supermarkets

Commercial Heated Beverage Cabinet, Small Countertop Display Warmer with Constant Temperature for Supermarkets

$1,099.00