The comparator's output will go high/low based on the photocell.
The output of the comparator will be the Set for the RS latch.
The comparator's output will go high/low based on the photocell.
The output of the comparator will be the Set for the RS latch.