Timer with feed back to close lights working with sensor

See: