sharp ir rangers

Sharp GP2D12 and 2Y0A02 infrared rangers output a voltage proportionate to the distance of an object from the sensor. The GPD12 senses objects at a distance of 10-80cm, while the 2Y0A02 has twice the range.