Description:
The SHARP Distance Sensor uses infrared (IR) light to detect objects and measure their distance. It emits IR light, which reflects off objects and returns an analog voltage that can be used to calculate the proximity of the nearest object. This sensor is ideal for short-range detection, typically up to 1 meter. For distances beyond 1 meter, we recommend using sonar sensors for better accuracy.
The sensor comes with a 12-inch 3-pin JST interface wire for easy connection.
To use:
- Connect the black wire to ground,
- Connect the red wire to 5V,
- Connect the white wire to an analog input on your microcontroller.
The output voltage varies based on the object’s distance:
- 3V when an object is 4 inches (10 cm) away.
- 0.4V when the object is 32 inches (80 cm) away.
Specification:
| Model | GP2Y0A21YK0F (10 to 80 cm) |
|---|---|
| Operating Voltage (VDC): | 4.5 ~ 5.5 |
| Distance measuring range (cm) | 10 ~ 80 cm |
| Screw Holes | 37mm apart, 3 mm diameter. |
| Connecting cable length (cm) | 15 |
| Length (mm): | 44 |
| Width (mm): | 18 |
| Height (mm): | 13 |
| UPC | 602716546003 |
Application:
-
Motor Drive & Control
-
Sensing & Instrumentation
-
Industrial
Note:
This sensor draws current in large, short bursts, and the manufacturer recommends putting a 10 µF capacitor or larger across power and ground close to the sensor to stabilize the power supply line.
Package Includes:
1 x Sharp Distance Measuring Sensor unit 10 to 80 cm.
1 x Connecting cable.
Attachments:
Videos:
Technical Specifications
| Model | GP2Y0A21YK0F |
|---|---|
| SKU | AI0362 |
| Weight | 0.01 kg |
| Availability | In Stock |
Applications & Use Cases
The Sharp Distance Measuring Sensor unit 10 to 80cm – GP2Y0A21YK0F is a versatile distance sensor used across a wide range of applications including obstacle detection, level measurement, robotics navigation, parking sensors, and industrial gauging.
Common use cases:
- Adding obstacle avoidance to a robot
- Measuring water tank level
- Building a parking distance indicator
This product is ideal for robotics developers and measurement system builders.
Technical Tip: Ultrasonic sensors (HC-SR04) are affordable but angle-limited. IR sensors are faster but range-limited. ToF sensors offer the best accuracy and speed.
Shipping & Delivery
- Free shipping on orders above ₹999 across India
- Dispatched within 1-3 business days
- Expected delivery: 3-7 business days depending on location
- Secure packaging to ensure safe transit of electronic components

Tanya Bose (verified owner) –
This Sharp Distance Measuring Sensor unit 10 is excellent for the price. My data logging project is working perfectly now.
Lakshmi Khurana (verified owner) –
Outstanding accuracy from this Sharp Distance Measuring Sensor unit 10. Compared with a professional instrument, readings match closely.
Zara Chatterjee –
Very satisfied with this Sharp Distance Measuring Sensor unit 10. Library support is good and it’s easy to interface.
Akshat Dave (verified owner) –
Very satisfied with this Sharp Distance Measuring Sensor unit 10. Library support is good and it’s easy to interface.
Bhavna Menon (verified owner) –
Excellent Sharp Distance Measuring Sensor unit 10! Readings are accurate and consistent. Perfect for my project.
Hemant Kulkarni (verified owner) –
Outstanding accuracy from this Sharp Distance Measuring Sensor unit 10. Compared with a professional instrument, readings match closely.
Pallavi Hegde (verified owner) –
This Sharp Distance Measuring Sensor unit 10 is a must-have for sensor projects. Plug and play with Arduino.
Shubham Banerjee –
This Sharp Distance Measuring Sensor unit 10 is a must-have for sensor projects. Plug and play with Arduino.
Bharat Chatterjee –
This Sharp Distance Measuring Sensor unit 10 works great with Arduino. Easy to wire up and code.
Meera Nayak (verified owner) –
Very satisfied with this Sharp Distance Measuring Sensor unit 10. Library support is good and it’s easy to interface.
Girish Malhotra –
Excellent sensitivity and range on this Sharp Distance Measuring Sensor unit 10. Works better than I expected.
Yashwant Rao (verified owner) –
Outstanding accuracy from this Sharp Distance Measuring Sensor unit 10. Compared with a professional instrument, readings match closely.
Rahul Hegde (verified owner) –
This Sharp Distance Measuring Sensor unit 10 is a must-have for sensor projects. Plug and play with Arduino.
Mohit Kulkarni (verified owner) –
Excellent sensitivity and range on this Sharp Distance Measuring Sensor unit 10. Works better than I expected.
Gaurav Gupta (verified owner) –
Excellent sensitivity and range on this Sharp Distance Measuring Sensor unit 10. Works better than I expected.
Chirag Menon (verified owner) –
Decent Sharp Distance Measuring Sensor unit 10 for the price. Requires proper wiring but works well once set up.
Akash Shah –
Very satisfied with this Sharp Distance Measuring Sensor unit 10. Library support is good and it’s easy to interface.
Ajay Patil –
Nice Sharp Distance Measuring Sensor unit 10. Readings are mostly accurate. Good enough for my hobby project.
Aman Krishnan (verified owner) –
Great Sharp Distance Measuring Sensor unit 10. Using it in my smart agriculture system. Reliable measurements every time.
Jai Ghosh (verified owner) –
Good Sharp Distance Measuring Sensor unit 10. Works as described. Calibration needed some patience but results are good.
Manish Dave (verified owner) –
Love this Sharp Distance Measuring Sensor unit 10. Response time is fast and readings are stable.
Bharat Srivastava (verified owner) –
Average Sharp Distance Measuring Sensor unit 10. Readings fluctuate a bit. Works for rough measurements.
Lalit Sethi (verified owner) –
Good Sharp Distance Measuring Sensor unit 10. Works as described. Calibration needed some patience but results are good.
Harshit Verma (verified owner) –
Love this Sharp Distance Measuring Sensor unit 10. Response time is fast and readings are stable.