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)
100% Cotton Watercolor Paper Pad 300gsm - Cold/Hot Press, 8K/16K/32K Sizes, Glued on Four Sides for Academy & Portable Sketching

100% Cotton Watercolor Paper Pad 300gsm - Cold/Hot Press, 8K/16K/32K Sizes, Glued on Four Sides for Academy & Portable Sketching

$11.90

Commercial Large Shredding Machine Tornado Potato Slicer Wavy Slice Equipment Carrot Slicer Multi-Function

Commercial Large Shredding Machine Tornado Potato Slicer Wavy Slice Equipment Carrot Slicer Multi-Function

$20,000.00

Electric Heating Pasteurization Tank – Horizontal Spray Type for Fresh Milk and Food Sterilization

Electric Heating Pasteurization Tank – Horizontal Spray Type for Fresh Milk and Food Sterilization

$11,211.00

[First Batch Deposit] Spring Cherry & Pear Snow - Original Lolita Ballet-Style Cake Dress Chinese JSK

[First Batch Deposit] Spring Cherry & Pear Snow - Original Lolita Ballet-Style Cake Dress Chinese JSK

$5.00

Bottled Water Electric Pump Bracket, Mineral and Pure Water Dispenser, Automatic Water Outlet Device

Bottled Water Electric Pump Bracket, Mineral and Pure Water Dispenser, Automatic Water Outlet Device

$383.98

Micro-Hyperbaric Oxygen Chamber - Rigid Sit/Lie Model for Home and Commercial Use, High-Altitude Oxygen Therapy Room

Micro-Hyperbaric Oxygen Chamber - Rigid Sit/Lie Model for Home and Commercial Use, High-Altitude Oxygen Therapy Room

$150.00

Stainless Steel Illuminated Hotel Room Number Plate, Smart Electronic Door Sign with Do Not Disturb and Make Up Room Bell

Stainless Steel Illuminated Hotel Room Number Plate, Smart Electronic Door Sign with Do Not Disturb and Make Up Room Bell

$10.00

Paper Blending Stump A1zdq001 - Large Art Sketch Highlighting Tool for Students

Paper Blending Stump A1zdq001 - Large Art Sketch Highlighting Tool for Students

$4.15

Continental Run-Flat Tires 225 235 245 255 265/45 50 55R17R18R19R20R21R22

Continental Run-Flat Tires 225 235 245 255 265/45 50 55R17R18R19R20R21R22

$350.00

3D Printing Pen for Children - 3D Stereoscopic Drawing Toy for Boys and Girls (Ages 6+)

3D Printing Pen for Children - 3D Stereoscopic Drawing Toy for Boys and Girls (Ages 6+)

$35.70

MOOCAT Loose-Leaf Refill – 300G Wood Pulp Fine-Texture Blank Paper for OC Binders A9/B5/M5/M6 Hand Drawing

MOOCAT Loose-Leaf Refill – 300G Wood Pulp Fine-Texture Blank Paper for OC Binders A9/B5/M5/M6 Hand Drawing

$12.90

Lanzhai Calligraphy Wool Felt Mat – Mini Arm Rest and Inkstone Pad with Creative Chinese Style Design for Painting and Writing

Lanzhai Calligraphy Wool Felt Mat – Mini Arm Rest and Inkstone Pad with Creative Chinese Style Design for Painting and Writing

$7.48

Qing Dynasty Calligrapher Lin Zexu Guangeti Small Regular Script: Buddha Speaks of the Infinite Life Sutra, Brush Tracing Practice Long Scroll Copybook

Qing Dynasty Calligrapher Lin Zexu Guangeti Small Regular Script: Buddha Speaks of the Infinite Life Sutra, Brush Tracing Practice Long Scroll Copybook

$8.80

Lightweight Ceramsite Bottom Padding, Professional Backfill for Sunken Bathroom Engineering and Construction, Large Granules

Lightweight Ceramsite Bottom Padding, Professional Backfill for Sunken Bathroom Engineering and Construction, Large Granules

$30.10

[In Stock] MINISO YOYO Wind-Chasing Diary Series Aromatherapy Figure Blind Box – Youyou-chan Ornament

[In Stock] MINISO YOYO Wind-Chasing Diary Series Aromatherapy Figure Blind Box – Youyou-chan Ornament

$49.00

Sanitary Juice Beverage Dairy Mixing Tank Food Pharmaceutical Electric Heating Emulsification Reaction Dissolution Tank

Sanitary Juice Beverage Dairy Mixing Tank Food Pharmaceutical Electric Heating Emulsification Reaction Dissolution Tank

$4,122.00

Zhi Paper Calligraphy Copybook: Shen Du's Red Cliff Ode, Jingzhai Zhen, and Bu Zi Qi Shuo - Small Regular Script Cards for Tracing Practice

Zhi Paper Calligraphy Copybook: Shen Du's Red Cliff Ode, Jingzhai Zhen, and Bu Zi Qi Shuo - Small Regular Script Cards for Tracing Practice

$17.00

Maike Outdoor Waterproof Dry Bag - Crossbody Travel Backpack for Rafting Diving and Beach Activities

Maike Outdoor Waterproof Dry Bag - Crossbody Travel Backpack for Rafting Diving and Beach Activities

$19.90

Oriental Pearl Dual Porcelain Jar Gift Set: Green Tea, Black Tea, Jin Jun Mei, and Pu'erh Loose Leaf Tea in Porcelain Jars

Oriental Pearl Dual Porcelain Jar Gift Set: Green Tea, Black Tea, Jin Jun Mei, and Pu'erh Loose Leaf Tea in Porcelain Jars

$140.41

Transparent Retainer Storage Case – Portable Soaking and Cleaning Box for Orthodontic Appliances and Dentures

Transparent Retainer Storage Case – Portable Soaking and Cleaning Box for Orthodontic Appliances and Dentures

$8.42

Original Wang Xizhi Huangting Small Regular Script Calligraphy Copybook for Soft/Hard Tip Pens Tear-Off Card Precise Tracing Kaishu Huan'e Tie

Original Wang Xizhi Huangting Small Regular Script Calligraphy Copybook for Soft/Hard Tip Pens Tear-Off Card Precise Tracing Kaishu Huan'e Tie

$35.70

Foldable Kitchen Sink Dish Drying Rack - Silicone Roll-Up Mat and Countertop Organizer

Foldable Kitchen Sink Dish Drying Rack - Silicone Roll-Up Mat and Countertop Organizer

$25.40

Rapid Folding Shopping Cart, Small Trolley for Stairs, Lightweight Portable Home Handcart, Supermarket Pushcart and Vegetable Basket

Rapid Folding Shopping Cart, Small Trolley for Stairs, Lightweight Portable Home Handcart, Supermarket Pushcart and Vegetable Basket

$178.39

Over-Toilet Storage Rack - No-Drill Toilet Paper Holder with Multi-Compartment Shelves for Wet Wipes and Aromatherapy

Over-Toilet Storage Rack - No-Drill Toilet Paper Holder with Multi-Compartment Shelves for Wet Wipes and Aromatherapy

$19.71

Stainless Steel Planter Pot - Outdoor Vegetable and Flower Growing Box for Balcony, Rooftop, Courtyard, Auto-Drainage, Customizable

Stainless Steel Planter Pot - Outdoor Vegetable and Flower Growing Box for Balcony, Rooftop, Courtyard, Auto-Drainage, Customizable

$42.50

Stainless Steel Over-Toilet Storage Rack, Multi-Function Floor-Mounted or Wall-Mounted Multi-Tier Organizer for Bathroom, Toilet, and Laundry

Stainless Steel Over-Toilet Storage Rack, Multi-Function Floor-Mounted or Wall-Mounted Multi-Tier Organizer for Bathroom, Toilet, and Laundry

$50.00

[Chip 3.0 Upgraded Model] Senzhou TDS Water Quality Tester for Tap and Drinking Water Health Monitoring

[Chip 3.0 Upgraded Model] Senzhou TDS Water Quality Tester for Tap and Drinking Water Health Monitoring

$22.90

Here and Now Pocket Calligraphy Copybook: Wen Zhengming Small Regular Script for Adult Beginners

Here and Now Pocket Calligraphy Copybook: Wen Zhengming Small Regular Script for Adult Beginners

$18.00

Southern Red Agate Loose Beads for DIY Crystal Jewelry Making, Round Bead Accessories and Materials

Southern Red Agate Loose Beads for DIY Crystal Jewelry Making, Round Bead Accessories and Materials

$1.10

3-Tier, 4-Tier, 5-Tier Double-Layer Drainage Rack, Water Bucket Stand, Floor-Standing Thickened Rack

3-Tier, 4-Tier, 5-Tier Double-Layer Drainage Rack, Water Bucket Stand, Floor-Standing Thickened Rack

$276.32