Moving things outside of big while true loop
Tweaking
Check first if system has been manually disabled before reading lux