#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("Temperature Value= ");
Serial.println(temp);
Serial.println("Humidity Value= ");
Serial.println(humid);
// put your main code here, to run repeatedly:
delay(200); // this speeds up the simulation
}