const int potPin = 33;
int potValue;
float voltage =0;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
potValue = analogRead(potPin);
voltage = (3.3/4095.0) * potValue;
Serial.print(potValue);
Serial.print(" = ");
Serial.print(voltage);
Serial.println("V");
delay(25);
}