Last of LED light sensing code