     debugDisplayPayload();
     publishPayload();
     ++counter;
-    delay(15000);
-  }
+    delay(5000);
+  }
+  ArduinoOTA.handle();
 }
 
 // ************************************************************************

  Serial.println("");
  Serial.print("WiFi connected, IP address: ");
  Serial.println(WiFi.localIP());
}

// Initialise Sensor

}

#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include <PubSubClient.h> // https://github.com/knolleary/pubsubclient/releases/tag/v2.3
#include <Wire.h>
#include "DHT.h"
