#include "DHTesp.h"
const int DHT_PIN = 13;
DHTesp dftSensor;
void setup()
{
Serial.begin(115200);
dftsensor.setup(DHT_PIN, DHTesp::DHT22);
}
void loop()
{
TempAndHumidity data = df
tSensor.getTempAndHumidity();
Serial.println("Temp:" + String(data.temperature, 2) +" ํC");
Serial.println("Humidity" + String(data.humidity, 1) + "%");
Serial.println("---");
delay(1000);
}