add code to monitor light sensor