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)
Topmodel Children's Watercolor Coloring Book Set with Pens, Baby Graffiti Sketchbook, Fill-in Storybook 3073

Topmodel Children's Watercolor Coloring Book Set with Pens, Baby Graffiti Sketchbook, Fill-in Storybook 3073

$119.09

Children's Potty Training Seat for Boys and Girls, Toddler Toilet Trainer with Urinal Bucket

Children's Potty Training Seat for Boys and Girls, Toddler Toilet Trainer with Urinal Bucket

$17.90

265/70R17 AT Off-Road Tire, Also Available in 205/215/225/235/45/50/55/60R18/20 High-Performance Sizes for 19-inch Wheels

265/70R17 AT Off-Road Tire, Also Available in 205/215/225/235/45/50/55/60R18/20 High-Performance Sizes for 19-inch Wheels

$898.00

CANDLE.LAB | Silver Metal and Wood Wick Centering Device - DIY Tool for Aromatherapy Container Candles

CANDLE.LAB | Silver Metal and Wood Wick Centering Device - DIY Tool for Aromatherapy Container Candles

$2.50

Custom Solid Wood Plaque - Antique Style Wooden Storefront Sign, Door Plaque, Carved Wood Board with Arched Couplets

Custom Solid Wood Plaque - Antique Style Wooden Storefront Sign, Door Plaque, Carved Wood Board with Arched Couplets

$50.00

Industrial Scouring Pads - Stainless Steel Brushing and Rust Removal for Iron Plates - Heavy-Duty Kitchen Cleaning and Polishing

Industrial Scouring Pads - Stainless Steel Brushing and Rust Removal for Iron Plates - Heavy-Duty Kitchen Cleaning and Polishing

$17.62

Supply Fully Automatic Self-Cleaning Filter Pipeline Backwash Filtration Machine Stainless Steel Scraper Filter

Supply Fully Automatic Self-Cleaning Filter Pipeline Backwash Filtration Machine Stainless Steel Scraper Filter

$9,600.00

Fangxinyue Scented Candle Glass Windshield - High Borosilicate Cover to Improve Memory Ring Burning

Fangxinyue Scented Candle Glass Windshield - High Borosilicate Cover to Improve Memory Ring Burning

$29.90

Hanging Drainage Basket Kitchen Sink Strainer Plastic Storage Rack Food Waste Filter

Hanging Drainage Basket Kitchen Sink Strainer Plastic Storage Rack Food Waste Filter

$2.85

Over-Toilet Storage Cabinet with Doors - Multi-Tier Floor Standing Bathroom Organizer for Narrow Spaces

Over-Toilet Storage Cabinet with Doors - Multi-Tier Floor Standing Bathroom Organizer for Narrow Spaces

$258.00

Inth A6 Multifunctional Leather Journal - Vintage Sketchbook, Watercolor Pad, and Doodle Book with Replaceable Cotton Refill Pages for Students

Inth A6 Multifunctional Leather Journal - Vintage Sketchbook, Watercolor Pad, and Doodle Book with Replaceable Cotton Refill Pages for Students

$26.90

Beginner Chinese Painting Line Drawing Copybook: Animals, Flowers, Figures, and Landscapes

Beginner Chinese Painting Line Drawing Copybook: Animals, Flowers, Figures, and Landscapes

$18.80

vantkevin Scented Candle Tool Set for Extinguishing Flames and Snuffing Wicks

vantkevin Scented Candle Tool Set for Extinguishing Flames and Snuffing Wicks

$17.60

Multi-Function Car Tire Stone Remover Tool - Hook Pick and Screwdriver for Tread Cleaning

Multi-Function Car Tire Stone Remover Tool - Hook Pick and Screwdriver for Tread Cleaning

$3.80

Pad Printing Machine Parts: Fixed Ink Roller Screw, Steel Plate Mounting Screw, Blade Holder Adjustment Nut, Blade Clamp Screw

Pad Printing Machine Parts: Fixed Ink Roller Screw, Steel Plate Mounting Screw, Blade Holder Adjustment Nut, Blade Clamp Screw

$0.30

Minggu Cast Steel Speed Bump - Iron Speed Limit Buffer for Road Ramps and Slopes

Minggu Cast Steel Speed Bump - Iron Speed Limit Buffer for Road Ramps and Slopes

$104.12

Lifting Chain Rigging with Shackles and Hooks - Manganese Steel Chain for Towing and Hoisting Cargo 5 Ton, 3t, 2m, 1m

Lifting Chain Rigging with Shackles and Hooks - Manganese Steel Chain for Towing and Hoisting Cargo 5 Ton, 3t, 2m, 1m

$92.90

309 PCB Conformal Coating - Triple Protection Acrylic UV-Cured Moisture Resistant Paint by Dima

309 PCB Conformal Coating - Triple Protection Acrylic UV-Cured Moisture Resistant Paint by Dima

$462.50

Biliansheng Non-Shaven Hair Transplant and Follicle Detection Service for Men and Women

Biliansheng Non-Shaven Hair Transplant and Follicle Detection Service for Men and Women

$88.00

Mattel UNO Cards Desktop Happy Casual Party Multiplayer U-No Official Game Interactive Poker Cards

Mattel UNO Cards Desktop Happy Casual Party Multiplayer U-No Official Game Interactive Poker Cards

$22.90

Zero-Basis Electric Guitar Intro: 7-Week Self-Study Plan with Practice Exercises, Error Correction, and Materials

Zero-Basis Electric Guitar Intro: 7-Week Self-Study Plan with Practice Exercises, Error Correction, and Materials

$472.10

Hongxing Ink for Brush Calligraphy - Large Bottle Black Ink for Beginners, Students, and Traditional Chinese Painting (Light Glue, Ancient Formula, Soot-based)

Hongxing Ink for Brush Calligraphy - Large Bottle Black Ink for Beginners, Students, and Traditional Chinese Painting (Light Glue, Ancient Formula, Soot-based)

$5.78

Loose Aquamarine Beads - Gemstone Bracelet Components Including Amber, Southern Red Agate, Gold Rutilated Quartz, Ice-Grade Devil Blue Donghai Crystal

Loose Aquamarine Beads - Gemstone Bracelet Components Including Amber, Southern Red Agate, Gold Rutilated Quartz, Ice-Grade Devil Blue Donghai Crystal

$6.72

Mia Sketch Blending Stump Set for Highlights and Shadows, Professional Art Supplies Including Paper Blenders, Makeup Sponges, and Cotton Tips for Still Life Drawing

Mia Sketch Blending Stump Set for Highlights and Shadows, Professional Art Supplies Including Paper Blenders, Makeup Sponges, and Cotton Tips for Still Life Drawing

$4.00

Custom Tactical Waterproof and Shockproof Knife Box - EDC Carry Case for Folding Knives, Headphones, Data Cables, and Tools

Custom Tactical Waterproof and Shockproof Knife Box - EDC Carry Case for Folding Knives, Headphones, Data Cables, and Tools

$21.99

Wang Xizhi's Hundred-Rhyme Song of Cursive Script - Taipei Palace Museum Edition Hardcover High-Definition Replica Decorative Art Print

Wang Xizhi's Hundred-Rhyme Song of Cursive Script - Taipei Palace Museum Edition Hardcover High-Definition Replica Decorative Art Print

$32.90

Used Car Tires – Sizes: 205/55, 185/65 R15, 215/225/235, 195 R15/R16/R17/R18/R19

Used Car Tires – Sizes: 205/55, 185/65 R15, 215/225/235, 195 R15/R16/R17/R18/R19

$264.00

IFG-50-3-4 Variable Frequency Three-Phase Asynchronous Motor SFC

IFG-50-3-4 Variable Frequency Three-Phase Asynchronous Motor SFC

$3,299.00

Manual French Fry Cutter, Multi-Function Slicer for Radish, Cucumber, Potato, and Onion, Commercial Vegetable Chopper

Manual French Fry Cutter, Multi-Function Slicer for Radish, Cucumber, Potato, and Onion, Commercial Vegetable Chopper

$660.00

Multi-Function Water Cooler Bucket Storage Rack for Office, Large Capacity Floor-Standing Organizer

Multi-Function Water Cooler Bucket Storage Rack for Office, Large Capacity Floor-Standing Organizer

$119.64