add a timer to change the brightness of lights over time