Hello everybody, I just don't get this. I wanted to verify that my TDS sensor was in fact receiving 5V. So. I connected PIN 5V of my ESP32 and ran the following program. Why does it say 20V on the serial monitor? Thank you.
int SensorValue =0;
#define VoltageSensorPin 34
void setup() {
Serial.begin(9600);
pinMode(34, INPUT);
}
void loop() {
SensorValue = analogRead(VoltageSensorPin);
float voltage = SensorValue * (5.0 / 1023.0);
Serial.println(voltage);
delay(1000);
}