void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
}
void loop() {
// put your main code here, to run repeatedly:
int analogValue = analogRead(35);
Serial.print("analog voltage reading: ");
Serial.println(analogValue);
delay(333);
float celsius = 1 / (log(1 / (1023. / (analogValue * 0.2489) - 1)) / 3950 + 1.0 / 298.15) - 273.15;
// this speeds up the simulation
}