He replace the variable resistor with a cadmium sulfide photoresistor (basically a variable resistor whose resistance depends on the intensity of light). Pulse-width modulation is used to adjust ...