#include <DHT.h>
#define DHTPIN 14
#define DHTTYPE DHT22
DHT dht(DHTPIN, DHTTYPE);
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, DHT22!");
dht.begin ();
}
void loop() {
// put your main code here, to run repeatedly:
delay(1000); // this speeds up the simulation
float h = dht .readHumidity();
float t = dht .readTemperature();
float f = dht .readTemperature(true);
Serial.print(F("Humidity"));
Serial.print(h);
Serial.print(F("% Temperature:"));
Serial.print(t);
Serial.print(F("(° C"));
Serial.print(f);
Serial.println(F("°F"));
}