void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Howdy, ESP32! :D");
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
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;
}