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)
Yiyi Electric Pad Printing Ink Cups (150/175/300/380) - Magnetic Doctor Blade Ink Wells for Coding Machines

Yiyi Electric Pad Printing Ink Cups (150/175/300/380) - Magnetic Doctor Blade Ink Wells for Coding Machines

$68.00

ML-150 Standard Material Leveling Machine - Economical and Practical Model

ML-150 Standard Material Leveling Machine - Economical and Practical Model

$11,780.00

3-in-1 Multi-Function Paint Brush Washer with Palette Compartments for Art Students

3-in-1 Multi-Function Paint Brush Washer with Palette Compartments for Art Students

$5.02

Silicone Dental Retainer Case - Portable Storage Box for Orthodontic Aligners & Dentures

Silicone Dental Retainer Case - Portable Storage Box for Orthodontic Aligners & Dentures

$19.30

Natural Crystal Raw Stone Aroma Diffuser Ornament Rose Quartz Crushed Stone Rough Ore Home Flameless Aromatherapy Healing Gift

Natural Crystal Raw Stone Aroma Diffuser Ornament Rose Quartz Crushed Stone Rough Ore Home Flameless Aromatherapy Healing Gift

$3.90

Blue Scale Line Printing Machine Pad with Ruler Markings for Water-Based Ink Printing

Blue Scale Line Printing Machine Pad with Ruler Markings for Water-Based Ink Printing

$80.00

Sponge Drain Rack for Kitchen Countertop - No-Drill Sink Organizer for Cloths and Narrow Edge Faucet Storage

Sponge Drain Rack for Kitchen Countertop - No-Drill Sink Organizer for Cloths and Narrow Edge Faucet Storage

$5.80

Kids' Art Round Sponge Stamp Brush for Kindergarten DIY Crafts, Mushroom Head Painting Tool

Kids' Art Round Sponge Stamp Brush for Kindergarten DIY Crafts, Mushroom Head Painting Tool

$3.59

Caiyan Art Blending Stumps for Oil Pastels and Sketching – Washable EVA Tips for Smooth Color Transition; Non-Staining, Ideal for Art Students

Caiyan Art Blending Stumps for Oil Pastels and Sketching – Washable EVA Tips for Smooth Color Transition; Non-Staining, Ideal for Art Students

$6.50

Paper Blending Stump Set for Sketching, Oil Pastels, and Highlighting – Ultra Soft

Paper Blending Stump Set for Sketching, Oil Pastels, and Highlighting – Ultra Soft

$3.83

Tire Stone Removal Hook with Built-in Screwdriver - Multi-Function Tool for Tire Cleaning, Window Breaking, and Self-Defense

Tire Stone Removal Hook with Built-in Screwdriver - Multi-Function Tool for Tire Cleaning, Window Breaking, and Self-Defense

$8.90

Blower Motor Compatible with Hummer H3, Hummer H2, and Cadillac Escalade

Blower Motor Compatible with Hummer H3, Hummer H2, and Cadillac Escalade

$340.00

Custom Fertilizer Integration Machine for Agriculture and Landscaping - Smart Quantitative Mobile Filtration System

Custom Fertilizer Integration Machine for Agriculture and Landscaping - Smart Quantitative Mobile Filtration System

$1,960.00

High-Speed Cell Sieve with Handle - Stainless Steel Laboratory Sieves (100, 200, 300, 400, 600 Mesh)

High-Speed Cell Sieve with Handle - Stainless Steel Laboratory Sieves (100, 200, 300, 400, 600 Mesh)

$61.74

Stainless Steel Food Warmer for Hotels and Breakfast Buffets - Commercial Flip-Top Chafing Dish with Insulation; Compatible with Induction Cookers

Stainless Steel Food Warmer for Hotels and Breakfast Buffets - Commercial Flip-Top Chafing Dish with Insulation; Compatible with Induction Cookers

$1,288.00

Marie's Blending Stumps Set for Sketching and Shading, Professional Art Supplies for Students

Marie's Blending Stumps Set for Sketching and Shading, Professional Art Supplies for Students

$2.55

National Standard JB/ZQ4606-86 Felt Oil Seal Ring - Bearing Oil Absorption, Dustproof, Industrial Wool Felt Gasket Strip

National Standard JB/ZQ4606-86 Felt Oil Seal Ring - Bearing Oil Absorption, Dustproof, Industrial Wool Felt Gasket Strip

$0.50

Qingzhu Sketching Eraser Knife and Paper Stump Tool Set for Art Students - Includes Replacement Tips, Gray Surface Pens, Makeup Sponge Blenders, Cotton Swabs, Foam Balls, Soft Blending Pens, Precision Insert Knives, and Sketch Eraser Balls

Qingzhu Sketching Eraser Knife and Paper Stump Tool Set for Art Students - Includes Replacement Tips, Gray Surface Pens, Makeup Sponge Blenders, Cotton Swabs, Foam Balls, Soft Blending Pens, Precision Insert Knives, and Sketch Eraser Balls

$7.20

4-Leg Chain Rigging Set - Alloy Steel Lifting Tool (1-200 Tons) with Multi-Leg Electromagnetic Chuck

4-Leg Chain Rigging Set - Alloy Steel Lifting Tool (1-200 Tons) with Multi-Leg Electromagnetic Chuck

$52.50

Commercial 1.8/2.2m Food Warmer Cabinet for Fried Chicken and Burger Shops, French Fry Heating Unit, 1.5m Two-Way Pickup Display Case

Commercial 1.8/2.2m Food Warmer Cabinet for Fried Chicken and Burger Shops, French Fry Heating Unit, 1.5m Two-Way Pickup Display Case

$3,573.50

Commercial Electric Heated Stainless Steel Fast Food Serving Counter Soup Warmer Buffet Cart

Commercial Electric Heated Stainless Steel Fast Food Serving Counter Soup Warmer Buffet Cart

$842.00

Natural Crystal White Azeztulite Loose Beads with Rainbow Luster for DIY Necklaces, Bracelets, and Jewelry Making

Natural Crystal White Azeztulite Loose Beads with Rainbow Luster for DIY Necklaces, Bracelets, and Jewelry Making

$5.54

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