I'm trying to read an analog value from my photocell, but simply I can't compile my program, because I can't set the input pin to A0 (or A-whatever). My loop():
void loop()
{
int sensor = analogRead(A0);
Serial.println(sensor);
}
But I get the following error: "'A0' was not declared in this scope.
Could somebody help? Thanks.
And sorry for my n00b question, I'm just a beginner.
Thanks, it really runs. But unfortunately, I have another problem with the new version (022) of IDE, very often I can't get my program into the arduino (because of "programmer is not responding"), while in the old version (018) it's okay.