In the figure we have the way to use a voltage comparator powered by a voltage to control a different voltage load. The sensor in this case is an LDR.
In the figure we have the way to use a voltage comparator powered by a voltage to control a different voltage load. The sensor in this case is an LDR.