   mqttclient.publish(TEMP_FEED_PATH, String(temperature_data).c_str(), true);
   Serial.print("Temperature published: ");
   Serial.print(temperature_data);
+  delay(1000);
   mqttclient.publish(HUMIDITY_FEED_PATH, String(humidity_data).c_str(), true);
   Serial.print("\nHumidity published: ");
   Serial.print(humidity_data);

  Serial.print(F("Connecting to "));
  Serial.println(WLAN_SSID);

  WiFi.begin(WLAN_SSID, WLAN_PASS);
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);

  Serial.println(F("WiFi connected"));
  Serial.println(F("IP address: "));
  Serial.println(WiFi.localIP());
  delay(10000);

  // connect to mqtt server
  mqttclient.setServer("192.168.0.50", 1883);
  mqttclient.setCallback(callback);
  connect();

}
