#include "DHTesp.h"

const int DHT_PIN = 19;

DHTesp dhtSensor;

void setup(void)
{
  Serial.begin(115200);
  dhtSensor.setup(DHT_PIN, DHTesp::DHT22);
}

void loop(void)
{
  TempAndHumidity  data = dhtSensor.getTempAndHumidity();
  Serial.println("Temp: " + String(data.temperature, 2) + "°C");
  Serial.println("Humidity: " + String(data.humidity, 2) + "%");
  Serial.println("---");
  delay(1000);
}
$abcdeabcde151015202530354045505560fghijfghij