Photoresistor and motor

Partially your issue might be due to design, partially it might be some currently unknown issue. Refer to Bug found with gcode_button for some background discussion