Develop the control system for turning the LED On and OFF, which will include the feedback loop. In the case, that the button "On" is pushed but the led did not turn On, the client should get the message about the error.
Before the realization the control system with all the elements should be sketched on paper.
Photo resistor should be used as the light sensor. One of the terminals of the photo resistor should be connected to the ground (GND) over 10k resistor. Another terminal is connected to the +5V
The electronics schematics where the photo resistor has been used is shown in the following figure:
The breadboard view is shown in the following figure: