Infrared Proximity Sensor Mid Range with JST connector - Sharp GP2Y0A21YK0F

Use this Mid Range Infrared Sensor to detect objects between 10cm and 80cm away. Analog output for easy readings. Includes JST connector and wires!

More details

Availability: SHIPS TODAY

Last Updated: 06/22/2024




This Infrared Proximity Sensor Short Range gives you an analog output that varies between 3.1V at 10cm and 0.3V at 80cm. All you need to do to get this running is hook up the included wires as follows:

  • Red: Supply voltage (4.5V - 5.5V)
  • Black: Ground (0 V)
  • Yellow: Signal 

The signal wire will vary between 3.1V and 0.3 V depending on the proximity of the object in front of the sensor. This is what you will hook up to your Arduino, Raspberry Pi, other microcontroller or circuit.


  • Operating Supply Voltage (Vcc): -0.3V - 7V DC
  • Output Terminal Voltage: -0.3 V to (Vcc + 0.3) V
  • Manufacturer Model Number: Sharp GP2Y0A21YK0F
  • Operating Temperature: -10 C to +60 C
  • Storage Temperature: -40 C to +70 C
  • Connector Type: JST (included)
  • Measuring Distance Range: 10 cm - 80 cm (Mid Range)
  • Average Supply Current: 30 mA



Sample code for Arduino


No customers have asked questions about this product yet.

Customers who bought this item also bought