Looking at the code for this:
try: # Local variables. low = 200 # Low value for light level (lux). high = 2000 # High value for light level (lux). period = 90 # Delay, in seconds, between calls. lights_on = False # Set the state of the lights to off.
How do I set a range?
I.e., low <= 200, high >= 2000?