Photodiodes are semiconductor devices used to detect and convert photons into an electric voltage (or current).