   } else {
     Serial.println(F("OK!"));
  }
-}  
+  
+  Serial.print(F("\nSending humid val "));
+  Serial.print(humidity);
+  Serial.print("...");
+  if (! humid_topic.publish(humidity)) {
+    Serial.println(F("Failed"));
+  } else {
+    Serial.println(F("OK!"));
+  }
+  
 /****************************** Ping  ***************************************/
 
   // ping the server to keep the mqtt connection alive


/************************* WiFi Access Point *********************************/

const char* WLAN_SSID     = "YourRouterSSID";
const char* WLAN_PASS     = "YourRouterPassword";

//ESP8266WebServer server(80);


    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.
