#include <DHTesp.h>
DHTesp dht;
TempAndHumidity data;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
dht.setup(26,DHTesp::DHT22);
}
void loop() {
data=dht.getTempAndHumidity();
Serial.println("Humidity:"+String(data.humidity));
Serial.println("Temperature:"+String(data.temperature));
delay(1000);
// put your main code here, to run repeatedly:
// this speeds up the simulation
}