Sharp GP2Y0D810Z0F Distance Sensor is an IR sensor manufactured by Sharp, designed to measure distances using its infrared (870nm wavelength) transmitter and receiver. It has a detection range between 2 cm and 10 cm, with a small hysteresis at the upper limit and no hysteresis at the lower limit. The Pololu 10cm Sharp GP2Y0D810Z0F Digital Distance Sensor module is a plug-and-play solution, integrating all the necessary components for operation onto a PCB. The square pad on the module serves as the GND, the middle pad as VIN (ranging from 2.7V to 6.2V), and the other pad is the sensor output, labeled as OUT.
Depending on your power supply, adding a large capacitor (>10 uF) between power and ground close to the sensor can improve performance. The sensor operates with an average current consumption of 5 mA (typical) and has a steady state update period of 2.56 ms (typical, maximum 3.77 ms). It also features an active/inactive function for power-saving, which requires disconnecting one path (Vcc connection).