void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
}
float t = 23.5;
float h = 57.2;
void loop() {
// put your main code here, to run repeatedly:
delay(1000); // this speeds up the simulation
char ct[5];
char *temp = dtostrf(t,4,2,ct);
Serial.print("temp: ");
Serial.print(temp);
Serial.print(" humi: ");
char ch[5];
char *humi = dtostrf(h,4,2,ch);
Serial.println(humi);
t += 0.1;
h += 0.1;
}