Do you mean just if it is dark or light? If so you can use an LDR (light dependent resistor) or any of several other sensors.
Steve
Do you mean just if it is dark or light? If so you can use an LDR (light dependent resistor) or any of several other sensors.
Steve