Testing the photoresistor with software