Optical sensors used for the displacement measurement works on the principle:
Show Hint
Think of the inverse-square law for light propagation: as distance from a source increases, the intensity of light falling on a fixed aperture decreases.
This simple geometric property is the basis of reflective optical displacement transducers.