#include <DHT.h>
DHT dht(13, DHT22);
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
}
void loop() {
int temperature = dht.readTemperature();
int humidity = dht.readHumidity();
// put your main code here, to run repeatedly:
Serial.print("The room temperature is ");
Serial.print(temperature );
Serial.println("°C");
delay(10000); // this speeds up the simulation
}