Just downloaded this video from my camera. It was an example of using an LDR to provide a resistance value based on the amount of light it received. We then took that value and used it to set the speed of the motor on the fan.?
Obviously this is a really simple little project. It only took a couple of minutes to set up and test. Good fun though.