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)
Ai Zao Fang Six-Cavity Oval Totem Handmade Soap Silicone Mold - Yields Approx. 115g per Bar

Ai Zao Fang Six-Cavity Oval Totem Handmade Soap Silicone Mold - Yields Approx. 115g per Bar

$17.70

Zunjue Wire-Bound 8K Watercolor Notebook 300g Watercolor Sketchbook Loose-Leaf Portable 16K Water-Soluble Colored Pencil Notebook Coil-Bound 32K Medium Coarse Fine Grain 200g Kids Students A4 Watercolor Notebook Plein Air Sketch Drawing Book

Zunjue Wire-Bound 8K Watercolor Notebook 300g Watercolor Sketchbook Loose-Leaf Portable 16K Water-Soluble Colored Pencil Notebook Coil-Bound 32K Medium Coarse Fine Grain 200g Kids Students A4 Watercolor Notebook Plein Air Sketch Drawing Book

$7.65

Yuan Dynasty Calligraphy by Zhao Mengfu - Small Regular Script Diamond Sutra Brush Tracing Long Scroll Copybook, Original Version, Wholesale and Customization Available

Yuan Dynasty Calligraphy by Zhao Mengfu - Small Regular Script Diamond Sutra Brush Tracing Long Scroll Copybook, Original Version, Wholesale and Customization Available

$15.00

Kodak Photo Printing Service - High-Definition Prints from Your Phone with Lamination and Album Binding

Kodak Photo Printing Service - High-Definition Prints from Your Phone with Lamination and Album Binding

$12.47

Shenzhen Custom Storefront Signage and Lightbox Installation - Illuminated Letters and Shop Plaques

Shenzhen Custom Storefront Signage and Lightbox Installation - Illuminated Letters and Shop Plaques

$50.00

Automotive AC Refrigerant Gauge Set – R134a Pressure Meter with Dual Valve Tool for Home R22/R410 Air Conditioning Systems

Automotive AC Refrigerant Gauge Set – R134a Pressure Meter with Dual Valve Tool for Home R22/R410 Air Conditioning Systems

$329.00

Complete Collection of Taoist Talisman Art Copybooks - Zhengyi Thirty-Six Generals, Calligraphy Practice Sheets with Stroke Order and Red Tracing, Classic Taoist Calligraphy

Complete Collection of Taoist Talisman Art Copybooks - Zhengyi Thirty-Six Generals, Calligraphy Practice Sheets with Stroke Order and Red Tracing, Classic Taoist Calligraphy

$38.00

Marie's Blending Knife Replacement Head Set Sketch Blending Tools Sponge Stumps Paper Stumps for Art Students

Marie's Blending Knife Replacement Head Set Sketch Blending Tools Sponge Stumps Paper Stumps for Art Students

$4.25

French Imported Arches Watercolor Paper - Handmade 100% Cotton, 300g-850g, Medium/Rough Grain, Extra-Large Rolls and Sheets (4K, Full, Half, Quarter)

French Imported Arches Watercolor Paper - Handmade 100% Cotton, 300g-850g, Medium/Rough Grain, Extra-Large Rolls and Sheets (4K, Full, Half, Quarter)

$33.10

Commercial Countertop Food Warmer Display Case - For Fried Chicken, Burgers, Egg Tarts, Pies, Youtiao, and Shaobing

Commercial Countertop Food Warmer Display Case - For Fried Chicken, Burgers, Egg Tarts, Pies, Youtiao, and Shaobing

$720.00

Integrated Hospital Wastewater Treatment Unit Underground Integrated Sanitary System Sewage Discharge Unit Eco-Friendly Wastewater

Integrated Hospital Wastewater Treatment Unit Underground Integrated Sanitary System Sewage Discharge Unit Eco-Friendly Wastewater

$10,000.00

Double Loop Lifting Chain with Rebar Bottom Hook - Manganese Steel Sling for Heavy Duty Rigging

Double Loop Lifting Chain with Rebar Bottom Hook - Manganese Steel Sling for Heavy Duty Rigging

$29.00

Screw Press Screw Sludge Dewatering Machine Sewage Treatment Equipment Rotary Type

Screw Press Screw Sludge Dewatering Machine Sewage Treatment Equipment Rotary Type

$17,600.00

Imported INA Needle Roller Bearings: 9NA, NA 2940, 4R22, 4924, 4926, 4928, 4930-XL A

Imported INA Needle Roller Bearings: 9NA, NA 2940, 4R22, 4924, 4926, 4928, 4930-XL A

$109.00

High-Purity Nitrogen Generator for Reflow Soldering and Wave Soldering - Efficient Energy-Saving Transformer Protection for Electronics Factories

High-Purity Nitrogen Generator for Reflow Soldering and Wave Soldering - Efficient Energy-Saving Transformer Protection for Electronics Factories

$46,100.00

Baohong Watercolor Paper 300g Wood Pulp Medium Grain A3 Full Sheet, Coarse/ Fine Grain Academy Grade 4K, A2, A1, A4 Artist Paper 2K for Art Students

Baohong Watercolor Paper 300g Wood Pulp Medium Grain A3 Full Sheet, Coarse/ Fine Grain Academy Grade 4K, A2, A1, A4 Artist Paper 2K for Art Students

$3.40

Manyue Handmade Natural Soy Wax and White Beeswax for DIY Low-Temperature Scented Candles – Includes Candle Cups and Jelly Wax

Manyue Handmade Natural Soy Wax and White Beeswax for DIY Low-Temperature Scented Candles – Includes Candle Cups and Jelly Wax

$5.46

Car Tire Stone Removal Tool Hook and Rake for Cleaning Tread Debris

Car Tire Stone Removal Tool Hook and Rake for Cleaning Tread Debris

$4.53

Caiyan Blending Sticks for Oil Pastels and Sketching, Dual-Tip Soft Wax Crayon Tools for Art Students, DIY Smudging, Highlighting, and Color Mixing

Caiyan Blending Sticks for Oil Pastels and Sketching, Dual-Tip Soft Wax Crayon Tools for Art Students, DIY Smudging, Highlighting, and Color Mixing

$8.20

Aizaofang Six-Cavity Leaf Stamp Silicone Mold for DIY Handmade Soap, Approx. 108g per Bar

Aizaofang Six-Cavity Leaf Stamp Silicone Mold for DIY Handmade Soap, Approx. 108g per Bar

$16.90

Sea to Summit Outdoor Rafting Waterproof Dry Bag Storage Backpack for Clothes, Large River Waterproof Bag 420D

Sea to Summit Outdoor Rafting Waterproof Dry Bag Storage Backpack for Clothes, Large River Waterproof Bag 420D

$83.30

Natural 5A Gold Rutilated Quartz Loose Beads - DIY Crystal Jewelry Making Supplies, Round Single Beads

Natural 5A Gold Rutilated Quartz Loose Beads - DIY Crystal Jewelry Making Supplies, Round Single Beads

$2.56

Rubber Cable Raceway and Speed Bump - Outdoor Cable Protection with Movable Cover; Indoor PVC Wire Ground Crossing Protector

Rubber Cable Raceway and Speed Bump - Outdoor Cable Protection with Movable Cover; Indoor PVC Wire Ground Crossing Protector

$31.44

Manufacturer Shaftless Conveyor Uniform Transport No Backflow Customizable Sizes Two-Year Warranty

Manufacturer Shaftless Conveyor Uniform Transport No Backflow Customizable Sizes Two-Year Warranty

$7,455.00

Curved Commercial Steamed Bun Machine - Small Glass Display Cabinet for Convenience Stores, Mantou Warmer, Baozi Steamer, Corn Warmer

Curved Commercial Steamed Bun Machine - Small Glass Display Cabinet for Convenience Stores, Mantou Warmer, Baozi Steamer, Corn Warmer

$338.00

U-Shaped Rubber Sealing Strip, N-Edge Rubber Strip, Edge Wrapping Strip, Iron Sheet Decorative Strip, Rubber Edge Sealing Strip

U-Shaped Rubber Sealing Strip, N-Edge Rubber Strip, Edge Wrapping Strip, Iron Sheet Decorative Strip, Rubber Edge Sealing Strip

$102.00

Rongbaozhai Calligraphy Felt Mat - Creative Printed Desk Pad for Brush Writing and Chinese Painting

Rongbaozhai Calligraphy Felt Mat - Creative Printed Desk Pad for Brush Writing and Chinese Painting

$14.20

Car Tire Stone Hook, Multi-Function Rust-Resistant Tool for Removing Stones, Picking, and Scraping Tire Debris

Car Tire Stone Hook, Multi-Function Rust-Resistant Tool for Removing Stones, Picking, and Scraping Tire Debris

$8.33

Hanmo Brocade Wrist Rest Traditional Four Treasures Study Gourd-Shaped Arm Pad Calligraphy Hand Pillow Artistic Fresh Wrist Rest

Hanmo Brocade Wrist Rest Traditional Four Treasures Study Gourd-Shaped Arm Pad Calligraphy Hand Pillow Artistic Fresh Wrist Rest

$9.10

West Coast Chicano Script Art, Glowing Decorative Painting for Shop Opening Gifts and Living Room Background Walls

West Coast Chicano Script Art, Glowing Decorative Painting for Shop Opening Gifts and Living Room Background Walls

$430.00