Read the distance of the object in front of your robot. The Sharp GP2Y0A02 IR Range Sensor takes a continuous distance reading and reports the distance as an analog voltage with a distance range of 20cm (~8") to 150cm (~60"). The interface is 3-wire with power, ground and output.