This example is for Wiring version 1.0 build 0100+. If you have a previous version, use the examples included with your software. If you see any errors or have comments, please let us know.
AnalogReadSerial Reads an analog input pin 0 and prints the result to the serial monitor Click on the serial monitor button to open it.
int sensorValue = analogRead(0);