void setup() {
Serial.begin(115200);
delay(1000); // Allow time for serial monitor to open
}
void loop() {
// Read the internal temperature sensor
int rawValue = temperatureRead(); // ESP32's built-in function
Serial.print("ESP32 Internal Temperature: ");
Serial.print(rawValue);
Serial.println(" °C");
delay(2000); // Wait 2 seconds before next reading
}