
Left comparison: # if A==0 then A= 1 --> toggles permanently, if electricity is @ 100%. If energy is "yellow" then it will no longer toggle every tick.
Middle Multplier: input * 1, Output B --> 1 step delay
right comparison: if A == B --> no current (currently it puts light on).
Note that the left and right side are on different electric networks.
If you want a brownout detector connect it with your network. If you want a day/night detector connect it with a solar panel.