#include "DHTesp"
  
DHTesp dhtsensor;
TempAndHumidity data;
const int DHT_PIN=15;
  
void loop()
{
// put your setup code here, to run once;
Serial.begin(1152300);
dhtsensor.setup(DHT_PIN,DHTesp::DHT22);
}
void loop()
{
data=dhtsensor.getTempAndHumidity();
Serial.println("Humi:"+ string(data.humidity));
Serial.println("Temp:"+ String(data.temperature));
Serial.println("-----------");
delay(1000);
}