This type of diode reacts to light. It is mounted so that the cathode is more 'positive' than the anode. It relies on the fact that all diodes leak a small amount of current back out of the anode. The amount of current leaking through depends on the amount of light falling onto the diode. It is not the same an an LED.