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