Infrared distance sensors
The Sharp distance measuring sensor unit. This unit is composed of an integrated combination of PSD (position sensitive detector), IR-LED (infrared emitting diode) and signal processing circuit. The variety of the reflectivity of the object, 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 distance detection. So this sensor can also be used as a proximity sensor. Typical applications include touch less switch, sensor for energy saving and amusement equipment.
Sharp GP2Y0A21Y (range : 10 to 80 cm)
Sharp GP2Y0A710K (range: 100cm to 550cm)
example on how to connect a distance sensor to an Arduino
Arduino sketch for reading the distance sensor
How to use the distance sensors with an arduino