#include "DHTesp.h"
DHTesp dht;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Project is working...");
dht.setup(23,DHTesp::DHT22);
}
void loop() {
float temp = dht.getTemperature();
Serial.println("temp = "+String(temp)+"°C");
float hum=dht.getHumidity();
// put your main code here, to run repeatedly:
delay(1000); // this speeds up the simulation
}