#include "DHT.h"
#define Dht_pin 4
#define dht_type DHT22
DHT dht(Dht_pin,dht_type);
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
dht.begin();
}
void loop() {
float humd=dht.readHumidity();
float temp=dht.readTemperature();
Serial.println("Temperature value=");
Serial.println(temp);
Serial.println("Humidity value=");
Serial.println(humd);
delay(200); // this speeds up the simulation
}