#include <DHTesp.h>

const int DHT_pin = 15;

DHTesp dhtSensor;


void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  dhtSensor.setup(DHT_pin, DHTesp::DHT22);
  }

void loop() {
  // put your main code here, to run repeatedly:
  TempAndHumidity data =  dhtSensor.getTempAndHumidity();
  Serial.println("Temp: "+ String(data.temperature, 2) + "C");
  Serial.println("Humid: " + String(data.humidity, 1) + "%");
  delay(3000); // this speeds up the simulation
}