 }
 */
 void sendInfo() {
+	while(true)
 	while (ss.available() > 0) {
 		if (gps.encode(ss.read())) { 
-			float temperature = dht.readTemperature();
-			float humidity = dht.readHumidity();
-			Serial.println(temperature);
-			if (!isnan(temperature) || !isnan(humidity) && gps.date.isValid() && gps.time.isValid()) { 
-				Serial.println(ESP.getFreeHeap());
-				StaticJsonBuffer<750> JSONbuffer;   
+			 float temperature = dht.readTemperature();
+			 float humidity = dht.readHumidity();
+			// Serial.println(temperature);
+			 if (!isnan(temperature) || !isnan(humidity) && gps.date.isValid() 
+				 && gps.time.isValid() && gps.location.isValid() && gps.location.isUpdated()) { 
+			//if (gps.date.isValid() && gps.time.isValid() && gps.location.isValid() && gps.location.isUpdated()) { 
+			 	StaticJsonBuffer<750> JSONbuffer;   
 				JsonObject& root = JSONbuffer.createObject(); 
 				JsonArray& values = root.createNestedArray("incidentValues");
 				JsonObject& temp = values.createNestedObject();

  http.sendRequest("GET");
  String payload = http.getString();
  http.end();
  Serial.println(payload);    
  if (payload == "true") {
    return true;
  }
