Add pull-up on light sensor INT output. Add 10uF capacitor before motor switch.
Attach a file by drag & drop or click to upload