This circuit is used to activate an alarm if you wave your hand in front of it:
How does the circuit operate?
It contains two photo diodes facing each other that produce certain current level. This current is then converted to voltage. Once the light intensity changes, voltage in turn changes to activate the alarm.