i have built a small circuit to detcet how much light in the room and i decide to use it in my robot to detcet the ambiant light . , and if the output of this circuit is high then my robot will light up some LEDs.......my problem is suppose that my circuit detced that there no light then the internal LEDs will light up and that mean they light detcteor circuit will detcet again that there are light in the room and then shutdown the internal light .
how to solve that .