It's Here! Chris Odom's Physical Computing & Robotics with the Arduino IDE - Volume Two!

Sharp GP2Y0A21 IR Infrared Range Sensor + Cable


GP2Y0A21YK0F is a distance measuring sensor unit, composed of an integrated combination of PSD (position sensitive detector) , IRED (infrared emitting diode) and signal processing circuit. The variety of the reflectivity of the object, the environmental temperature and the operating duration are not influenced easily to the distance detection because of adopting the triangulation method. This device outputs the voltage corresponding to the detection distance. So this sensor can also be used as a proximity sensor.


1. Distance measuring range : 10 to 80 cm 

2. Analog output type 

3. Package size : 29.5×13×13.5 mm 

4. Consumption current : Typ. 30 mA 

5. Supply voltage : 4.5 to 5.5 V