Calls a function to poll for light every 5 seconds