#include "DHT.h"
#define DHTPIN 2
#define DHTTYPE DHT22
DHT dht(DHTPIN, DHTTYPE);
void setup() {
Serial.begin(9600);
dht.begin();
pinMode(2, INPUT);
// float t= dht.readTemperature();
Serial.println("micro is start!!");
}
void loop() {
// put your main code here, to run repeatedly:
if(digitalRead(2)==LOW){
Serial.print("button active");
delay(200);
}
}