Fix minor math error
Removed broken light value monitoring, untill I fix it
Changed sensor to take the mode of 5 sensor readings, to reduce noise
Rewrote most of this module, to clean up the code