Arduino code for the light controller.