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)
Zhonglian Hamburger Food Warmer Display Cabinet 1.2m 1.5m 3-in-1 Warmer Double-Layer Display Cabinet Crisp Keeper

Zhonglian Hamburger Food Warmer Display Cabinet 1.2m 1.5m 3-in-1 Warmer Double-Layer Display Cabinet Crisp Keeper

$3,376.00

A3 Watercolor Paper 300g Thickened Cotton Pulp Fine Grain, A4 Medium Grain for Beginners, 4K Wood Pulp Cotton Blank Hand-Painting Paper, Square Art Coloring Paper, Postcard & Bookmark Paper

A3 Watercolor Paper 300g Thickened Cotton Pulp Fine Grain, A4 Medium Grain for Beginners, 4K Wood Pulp Cotton Blank Hand-Painting Paper, Square Art Coloring Paper, Postcard & Bookmark Paper

$18.90

Sketch Gray Tone Pencils for Art Students, Detail Highlight Blending Stumps, Makeup Sponge Pens, Quick Sketch Eraser Pen Sets

Sketch Gray Tone Pencils for Art Students, Detail Highlight Blending Stumps, Makeup Sponge Pens, Quick Sketch Eraser Pen Sets

$6.46

Disposable Vacuum Cleaner Filter Mesh - Non-Woven Dust Bag with Elastic Band for Home Use

Disposable Vacuum Cleaner Filter Mesh - Non-Woven Dust Bag with Elastic Band for Home Use

$4.50

Systematic 3D Painting Learning Package (Includes 100 Lessons)

Systematic 3D Painting Learning Package (Includes 100 Lessons)

$798.00

6/8/12Pcs Silicone Red Wine Glass Identification Marker Char

6/8/12Pcs Silicone Red Wine Glass Identification Marker Char

$27.44

Stainless Steel Sink Drain Basket – Expandable Kitchen Dish and Vegetable Rack

Stainless Steel Sink Drain Basket – Expandable Kitchen Dish and Vegetable Rack

$12.35

Tungsten Carbide Internal Thread Tool Holder – Anti-Vibration CNC Turning Insert for Small Bore Threading (CNR)

Tungsten Carbide Internal Thread Tool Holder – Anti-Vibration CNC Turning Insert for Small Bore Threading (CNR)

$73.02

Henkel Loctite SICOMET 8400 77 99 40 50 Instant Adhesive for Metal and Rubber with BS Accelerator

Henkel Loctite SICOMET 8400 77 99 40 50 Instant Adhesive for Metal and Rubber with BS Accelerator

$69.00

Colored Pencil Set, Basswood Hexagonal Raw Wood Pencils for Painting and Art Coloring

Colored Pencil Set, Basswood Hexagonal Raw Wood Pencils for Painting and Art Coloring

$21.68

Small Ceramic Herb Jar – Imperial Yellow Hexagonal Double-Layer Container for Angong Niuhuang Wan Pills

Small Ceramic Herb Jar – Imperial Yellow Hexagonal Double-Layer Container for Angong Niuhuang Wan Pills

$8.80

Spanish Brush Master ESCODA PERLA Pearl White Toray Nylon Round Watercolor Brush, Short Handle 1430

Spanish Brush Master ESCODA PERLA Pearl White Toray Nylon Round Watercolor Brush, Short Handle 1430

$44.20

Qiwei COD Rapid Detector QW-COD-T/B - Chemical Oxygen Demand Tester with Potassium Dichromate Digestion for Wastewater

Qiwei COD Rapid Detector QW-COD-T/B - Chemical Oxygen Demand Tester with Potassium Dichromate Digestion for Wastewater

$3,330.16

Natural Wheat Straw Baby Rattle - Children's Musical Instrument Toy, Maraca, Shaker Bell for Newborns - Orff Music Instrument

Natural Wheat Straw Baby Rattle - Children's Musical Instrument Toy, Maraca, Shaker Bell for Newborns - Orff Music Instrument

$10.80

CANDLE.LAB | 100% Cotton Unwaxed Candle Wick Roll - Thin Stem Chandelier Candle Making Supplies #31

CANDLE.LAB | 100% Cotton Unwaxed Candle Wick Roll - Thin Stem Chandelier Candle Making Supplies #31

$25.00

Pneumatic Rotary Vibrator - Feiyu GT25 Pneumatic Vibrator - Quality Guaranteed

Pneumatic Rotary Vibrator - Feiyu GT25 Pneumatic Vibrator - Quality Guaranteed

$997.00

Quick-Frozen Vegetable Deodorizing Sterilization Washer IRW Zhongfang Ready-to-Cook Vegetable Production Washing Line Semi-Finished Vegetable Processing Oxygen Equipment

Quick-Frozen Vegetable Deodorizing Sterilization Washer IRW Zhongfang Ready-to-Cook Vegetable Production Washing Line Semi-Finished Vegetable Processing Oxygen Equipment

$27,000.00

KETELES 105R7120 Carbon Fiber Road Bike - Lightweight Racing Bicycle with Gear Shifter

KETELES 105R7120 Carbon Fiber Road Bike - Lightweight Racing Bicycle with Gear Shifter

$11,339.00

Natural White Crystal Sugar Cube DIY Crystal Jewelry Accessories Materials Irregular White Crystal Blocks

Natural White Crystal Sugar Cube DIY Crystal Jewelry Accessories Materials Irregular White Crystal Blocks

$2.50

Foldable Silicone Brush Washing Bucket - Portable Water Container for Calligraphy and Painting Students

Foldable Silicone Brush Washing Bucket - Portable Water Container for Calligraphy and Painting Students

$8.42

Cute Cartoon Bird Ceramic Brush Washer - Decorative Pen Cleaning Cup and Photo Prop

Cute Cartoon Bird Ceramic Brush Washer - Decorative Pen Cleaning Cup and Photo Prop

$12.60

Kitchen Storage Rack with Drainage Tray – Organizer for Dishcloths, Faucets, Sink Areas, and Dishwashing Supplies

Kitchen Storage Rack with Drainage Tray – Organizer for Dishcloths, Faucets, Sink Areas, and Dishwashing Supplies

$4.15

Sheng Y Graffiti Paint Brush Set, Children's Stationery Kit with Art Watercolor Pens, Factory Direct Gift Supplies

Sheng Y Graffiti Paint Brush Set, Children's Stationery Kit with Art Watercolor Pens, Factory Direct Gift Supplies

$49.10

Ningbo Manufacturer Display and Storage Rack, Wall-Mounted Tire Storage for Home Garage, Customizable Wall Tire Rack

Ningbo Manufacturer Display and Storage Rack, Wall-Mounted Tire Storage for Home Garage, Customizable Wall Tire Rack

$237.60

Universal Low-Temperature 3D Printing Pen Filament PCL, Eco-Friendly Material Wire 1.75mm Compatible with Deli Pens, 40 Color Options

Universal Low-Temperature 3D Printing Pen Filament PCL, Eco-Friendly Material Wire 1.75mm Compatible with Deli Pens, 40 Color Options

$3.80

Automatic Feeder - Stainless Steel Food Machinery Accessory Equipment

Automatic Feeder - Stainless Steel Food Machinery Accessory Equipment

$20,150.00

Henkel Loctite Super Glue Series: 401, 406, 460, 480, 495, 4011, 4161, 496, 382, 410

Henkel Loctite Super Glue Series: 401, 406, 460, 480, 495, 4011, 4161, 496, 382, 410

$28.00

Over-Toilet Storage Rack with Tissue Organizer for Bathroom, Vanity, and Shower Gel - Multi-Use Bathroom Shelf

Over-Toilet Storage Rack with Tissue Organizer for Bathroom, Vanity, and Shower Gel - Multi-Use Bathroom Shelf

$27.66

15-inch Carbon Fiber FPV Drone Frame - High-Strength Quadcopter Aerial Photography Chassis Direct Sale

15-inch Carbon Fiber FPV Drone Frame - High-Strength Quadcopter Aerial Photography Chassis Direct Sale

$396.44

Petal-Shaped Ceramic Tea Scoop and Holder for Gongfu Tea Ceremony

Petal-Shaped Ceramic Tea Scoop and Holder for Gongfu Tea Ceremony

$97.00