Problem with delay not working in light sensing led program