Using Light Sensor to Activate DC Motor
Using a voltmeter, I found that the LDR was not receiving any voltage, so I moved my jumper cables near where it was placed, and it started detecting values. As for the motor, I had to connect the ground to emitter instead of the collector.