Photoresistor,also called photocell, is a light sensor. Its resistor changes with light.

This project will use photoresistor to detect light and turn on/off an LED light.

Connection Graph:
photocell

Download photoresistor.ino sketch and load it into Arduino.