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)
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 with Movable Cover

Rubber Cable Raceway and Speed Bump with Movable Cover

$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

G80 Heavy Duty Chain SHQ - 2m/6m/8m/10m Short Chains for Manual Chain Hoists

G80 Heavy Duty Chain SHQ - 2m/6m/8m/10m Short Chains for Manual Chain Hoists

$8.51

Commercial Food Warmer Small Heating Thermostat Display Cabinet Countertop Chestnut Egg Tart Bread Glass Cooked Food Cabinet

Commercial Food Warmer Small Heating Thermostat Display Cabinet Countertop Chestnut Egg Tart Bread Glass Cooked Food Cabinet

$188.00

Eye-Protection Highlighter Pens for Elementary Students - Colored Markers for Key Points, Note-Taking for Middle Schoolers, Journaling Pens

Eye-Protection Highlighter Pens for Elementary Students - Colored Markers for Key Points, Note-Taking for Middle Schoolers, Journaling Pens

$1.51

Play Instantly! Steel Tongue Drum Starter Kit with Smart Practice App and Full Accessories - Perfect for Personal Use or Gifting

Play Instantly! Steel Tongue Drum Starter Kit with Smart Practice App and Full Accessories - Perfect for Personal Use or Gifting

$338.00

Rubber Cable Protection Ramp Wire Channel Cover Outdoor Ground Crossing

Rubber Cable Protection Ramp Wire Channel Cover Outdoor Ground Crossing

$15.05

Sketch Blending Knife Set for Artists – Highlight, Detail, Shadow Blending Tools with Cotton Swabs, Scrapers, Sponge Tips, and Replacement Heads for Still Life Drawing

Sketch Blending Knife Set for Artists – Highlight, Detail, Shadow Blending Tools with Cotton Swabs, Scrapers, Sponge Tips, and Replacement Heads for Still Life Drawing

$4.20

Wenxin Tang Calligraphy and Painting Felt - Ancient Art Series, Double-Sided Wool Felt with Leather Desk Mat for Calligraphy and Painting, Colorful Soft Stain-Resistant Felt for Brush Writing Practice, Traditional Chinese Painting Supplies

Wenxin Tang Calligraphy and Painting Felt - Ancient Art Series, Double-Sided Wool Felt with Leather Desk Mat for Calligraphy and Painting, Colorful Soft Stain-Resistant Felt for Brush Writing Practice, Traditional Chinese Painting Supplies

$32.30

Construction Backfill Ceramsite Lightweight for Bathroom Garage Roof Base Concrete Roof Sloping Gardening Planting

Construction Backfill Ceramsite Lightweight for Bathroom Garage Roof Base Concrete Roof Sloping Gardening Planting

$430.00

Scented Candle Making Kit - DIY Tools Including Wax Melting Pot, Thermometer, Heating Stove, and Containers

Scented Candle Making Kit - DIY Tools Including Wax Melting Pot, Thermometer, Heating Stove, and Containers

$6.46

Stainless Steel Multi-Function Bathroom Storage Rack - Over-Toilet Shelf with Multi-Layer Floor Standing Cabinet for Washing Machine

Stainless Steel Multi-Function Bathroom Storage Rack - Over-Toilet Shelf with Multi-Layer Floor Standing Cabinet for Washing Machine

$48.98

Variable Frequency Drive Safety Function Module FSO-12 Kit

Variable Frequency Drive Safety Function Module FSO-12 Kit

$9,900.00

Wheel Lug Nuts Compatible with Ford Focus, Kuga, Mondeo, Escort, EcoSport, Everest

Wheel Lug Nuts Compatible with Ford Focus, Kuga, Mondeo, Escort, EcoSport, Everest

$59.50