How does a photodiode sensor work?
A photodiode sensor works by converting light into an electrical current. When light photons hit the semiconductor material of the photodiode, they generate electron-hole pairs, leading to a flow of current proportional to the intensity of the light.