 #define maxlen 50
-
+#include "DHT.h"
+#define DHTPIN 2
+#define DHTTYPE DHT22
+DHT dht(DHTPIN, DHTTYPE);
 int pingPin[3] = {3, 5, 7}; //{T,R,L}
 int max_timeout[3] = {6000, 3250, 3250}; //{T,R,L}
 int timeout;

short idx = 0;
short sleep_left = 0;
int i = 0;

int statusLed = 11;
int errorLed = 12;


void setup()
{
  Serial.begin(9600);
  dht.begin();
}

void loop()
{
  temp_count++;
  Pin = pingPin[inc];
  timeout = max_timeout[inc];
  getDuration();
