     temp_c = dht.readTemperature();    // Read temperature as Celsius
     // Check if any reads failed and exit early (to try again).
     //if (isnan(humidity) || isnan(temp_f)) {
-    if (isnan(humidity) || isnan(temp_c)) {
+    if (isnan(temp_c) || isnan(humidity) || temp_c != 0 || humidity != 0) {
       Serial.println("Failed to read from DHT sensor!");
       return;
     }

    mqtt.disconnect();
  }
*/
 /********************************* MQTT Conn  ********************************/
// Function to connect and reconnect as necessary to the MQTT server.
// Should be called in the loop function and it will take care if connecting.

      Serial.println((char *)temp_subscription.lastread);
      
    }
  }*/
  while ((subscription = mqtt.readSubscription(10000))) {
    if (subscription == &humid_subscription) {
      Serial.print(F("Got humid: "));
      Serial.println((char *)humid_subscription.lastread);
    }
    else {
      Serial.print(F("Got temp: "));
      Serial.println((char *)temp_subscription.lastread);
    }
  }
  
 /****************************** Publish  **********************************/
   // Now we can publish stuff!
  //Serial.print(F("\nSending test val "));
