A photodiode is a semiconductor device that converts light into electrical current. It is a type of light sensor that operates based on the photoelectric effect, which means that when light falls on the photodiode, it generates electron-hole pairs, producing a current proportional to the intensity of the light.