adds light sensor to turn off green light