Three pin JST connector with red, black, and yellow colors. 5 inch wire outs. This cable comes fully assembled as shown and connects directly to many different Sharp sensors. Quick and easy, this cable will save you 15-20 minutes over making your own wiring harness.
The Sharp GP2Y0A21YK0F is a distance sensor using infrared for measuring the distance to the object. This device outputs the voltage corresponding to the detection distance. So this sensor can also be used as a proximity sensor.