 short idx = 0;
 short sleep_left = 0;
 int i = 0;
-
+int temp_count = 0;
 int statusLed = 11;
 int errorLed = 12;
 

#define maxlen 50

int pingPin[3] = {3, 5, 7}; //{T,R,L}
int max_timeout[3] = {6000, 3250, 3250}; //{T,R,L}
int timeout;

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

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