The typical application of the TSSP77P38 is a reflective sensor with analog information contained in its output. Such a sensor is evaluating the time required by the AGC to suppress a quasi continuous signal. The time required to suppress such a signal is longer when the signal is strong than when the signal is weak, resulting in a pulse length corresponding to the distance of an object from the sensor. This kind of analog information can be evaluated by a microcontroller. The absolute amount of reflected light depends much on the environment and is not evaluated. Only sudden changes of the amount of reflected light, and therefore changes in the pulse width, are evaluated using this application.
Read the data sheet of IR proximity sensor.
**broken link removed**