     Serial.print(",");
     Serial.print(data[1]);
     Serial.print(",");
-    Serial.println(data[2]);
+    Serial.print(data[2]);
+    if(temp_count == 18000) {
+	temp_count = 0;
+    	float f = dht.readTemperature(true);
+	Serial.print(",");
+    	if(isnan(f))
+	    Serial.println("Error in DHT");
+    	else
+            Serial.println(f);
+    }
+    else
+	Serial.println("");
+
   }
   inc = inc % 3;
 
-}
+}
#define maxlen 50

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 temp_count = 0;
int statusLed = 11;
int errorLed = 12;

