#include "DHT.h"
#define SENSOR 13
#define DHTTYPE DHT22
DHT dht(SENSOR, DHTTYPE);
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(SENSOR, INPUT);
dht.begin();
}
void loop() {
float temp = dht.readTemperature();
float humidity = dht.readHumidity();
Serial.println("Temperature: " + String(temp) + " Humidity: " + String(humidity));
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}