int lightPin = 0; //define pin for Photo resistor
int ledPin=13;//define a pin for LED
Serial.begin(9600); //Begin serial communication
pinMode( ledPin, OUTPUT );
Serial.println(analogRead(lightPin)); //Write the value of the photoresistor to the serial monitor.
//send the value to the ledPin. Depending on value of resistor
/* you have to divide the value. for example, with a 10k resistor divide the value by 2, for 100k resistor divide by 4 */
delay(10); //short delay