/* Project: default */
#include "DHT.h";
DHT dht22(22,DHT22);
bool imprEtapa2_;
void setup()
{
pinMode(15, OUTPUT);
pinMode(22, INPUT);
dht22.begin();
pinMode(2, INPUT);
Serial.begin(115200);
}
void loop()
{
if(digitalRead(2) && ((dht22.readTemperature()) < (19))){
digitalWrite(15,HIGH);
}else{
digitalWrite(15,LOW);
}
}