UVLT01 UV lamp with timer [mk 1] software repo. Project page on Hackaday.io The following schema represents the state machine used in the program.