Change log:Version 1:2016-09-26* Prevented the: Scan, variable from overflowing... in case you would run this flow for more than 1021 years ;P(at current speed)* Changed the time out to inexact delay & removed keep awake (should not have been on at all) to extend battery life further.

Version 2 = crap.Version 3:2016-10-07* Now uses a list of the last lux values (default 10 entries) and calculate the average of them, to get a slower and more seamless light transition.* I have lowered the delay in this program so the "cycle time" is faster to increase response time (slightly more battery consumption)* Now resents the list to the current light level when screen has been off for more than 1 program cycle.