Hi , Thanks for the quick response. The sensor is not much important it can be light or motion sensor. The circuit is main important. May be it motion or light sensor it(the circuit) should fulfill the purpose.:smile:
Now from your term "not required" means there is already enough light in the room so tube light or whatever should get turn off. You can use a LDR for this purpose along with the a comparator. Set the values according to your need !!!