A simple photoresistor setup to change the intensity of an LED based on the brightness.

It should be simple enough. Just follow the design and run the code.