Often when we build devices we want them to react to the external environment.
This means we have to implement some sort of sensor to detect the changes.
In this case we'll build a simple light detector.
To understand this circuit you will need a little electronics background.