Lightsensor constantly reads 1023

Hi! I've just gotten an arduino starter kit for christmas, and i am troubling with the light sensor. I've seen numerous tutorials and i've followed them step by step, and i still have the same problem... Whenever i open the serial monitor it reads 1023...

CODE:
int lightPin = A0;
int lightlevel = 0;

void setup() {
Serial.begin(9600);
pinMode(lightPin, INPUT);

}

void loop() {

lightlevel = analogRead(lightPin);
Serial.println(lightlevel);
delay(200);
}

and a picture of the breadboard

lightsensor.PNG

Hi,
All LOOKS right. Try remove all wiring and redo it... Sometimes Works For Me..

thecatmiaw:
and a picture of the breadboard

No, that's a Fritzing picture.
Your breadboard/resistor/LDR might be different.
Some longer breadboards might have interrupted ground/power rails.
Always wise to post a diagram and a "real" picture.

"1023" indicates that the resistor or the ground wire are not properly connected.
Leo..