The Sharp Distance Sensor 150cm GP2Y0A21YK0F will provide accurate distance measurements at a more affordable price. This particular Sharp sensor will detect distances in a range of 8″ to 60″ (20-150 cm).
The GP2Y0A02YK0F uses a 3-pin JST PH connector that works with our 3-pin JST PH cables for Sharp distance sensors, also included is a 3-pin JST PH cable 8 in (20 cm) in length for each unit.
How it works: Infrared is sent out by the sensor which bounces off objects. The analog voltage that is returned determines how close the nearest object is. The closer it is, the higher the voltage is returned.