But when photo diode is used in reverse bias the amount of electrons flowing through the PN junction barrier are proportional to the amount of light incident on the diode. A current is generated in a depletion region due to the absorbed light. This the amount of current is proportional to the light intensity.