A photodiode is a photo detector (the opposite of a light-emitting diode). It responds to light that comes in. Photodiodes have a window or optical fiber connection, which lets light in to the sensitive part of the diode. Diodes usually have strong resistance; the light reduces the resistance.