corrected GPIO pin names
added separate delay for light check loop