Distance measurement with optical distance sensors
  
Distance sensors based on optical triangulation. The components work with one or more infrared LEDs and a receiver chip, the so-called PSD. This is a 4-layer semiconductor component that generates different currents depending on the angle of incidence of the infrared beam reflected by the object. These currents are then related to a reference by the downstream electronics and output at the output pin as a degressive analog voltage. Thus, a stepless distance measurement is possible. The color of the object does not play a role. The surface condition is also uncritical to a certain degree.

 
Manufacturer SHARP
:
https://www.dema.net/en/manufacturer/sharp-optoelectronic