#define pot A2
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
int pot_output= analogRead(pot);
Serial.println(pot_output);
float voltage =pot_output * 5.0/1023.0;
Serial.println(voltage);
delay(800);
}