const int pinTemp = 35;
int tempValue = 0;
float suhu;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
delay(1000);
}
void loop() {
// put your main code here, to run repeatedly:
tempValue = analogRead(pinTemp);
suhu = (-0.0248 * tempValue) + 78.262;
Serial.println(suhu);
delay(500); // this speeds up the simulation
}