This extra-long-range SHARP distance sensor bounces IR off objects to determine how far away they are. It returns an analog voltage that can be used to determine how close the nearest object is. Comes with 6" long 6-JST interface wire. These sensors are good for detection between 100cm-500cm (1-5 meters / 3-15 feet). The long range makes them a good alternative to sonar sensors.
Please note: the wire colorings are not intuitive! Watch out before wiring! The datasheet has wiring details as well. Connect the blue & red wire to ground, the black & yellow wires to 5VDC and read the analog signal from the green wire. The analog voltage out will range from 3V when an object is about 100cm away away and 1.4V when the object is 500cm away. For a full graph, showing the distance to analog range, check the datasheet below.
These sensors tend to be a little noisy, we suggest soldering/connecting the included 220uF capacitor to the same place you connect the wires, to provide some filtering on the power supply.
For more information, please see the datasheet!
IR Distance Sensor - Includes Cable (100cm-500cm) (12:37)