#include "DHT.h"
DHT dht(13, DHT22);
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial.println("Hello, ESP32!");
dht.begin();
delay(2000);
}
void loop() {
delay(2000);
float temp=dht.readTemperature();
float humidity=dht.readHumidity();
Serial.print("Temp:");
Serial.print(temp);
Serial.println(" ");
Serial.print("Humidity:");
Serial.print(humidity);
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}