int in = A0; void setup() { Serial.begin(9600); pinMode(in, INPUT); } void loop() { float val = analogRead(in); Serial.println(val); delay(2000); }