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