#include <dht.h> //include the temperature and humidity sensor library#define dht_apin A0 //define the sensor to pin A0dht DHT;
void setup() { Serial.begin(9600);//start the serial monitordelay(1000);
}
void loop() { DHT.read11(dht_apin);//read the sensorSerial.print(DHT.humidity);//print the humidity dataSerial.print("%");Serial.print(", ");Serial.println(DHT.temperature);//print the temperature data