The entire program is just 33 lines long, and you can opt to modify it to add more photoresistors to monitor for light sources from other directions. Making an Arduino-powered automatic trash bin ...