#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 humid=dht.readHumidity();
float temp=dht.readTemperature();
Serial.println("Tempretaure Value");
Serial.println(temp);
Serial.println("Humidity Value");
Serial.println(humid);
delay(200); // this speeds up the simulation
}