JST Wire

JST wire

Image courtesy of SparkFun

If you’re using an Sharp analog IR distance Sensor that did not come with a cable, you’ll need to use one of these cables to connect it to your Arduino. Red is 5V, black is ground, and yellow is the analog signal that you connect to an ADC pin on your Arduino.

Buy a 3-pin JST cable from SparkFun.