use Time library, employ brightness sensor