Brightness and Darkness

The following schematics show how the brightness detector and darkness detector are implemented.

You can see the corresponding videos here:

Brightness detector

Darkness detector