     case WStype_DISCONNECTED:
       Serial.printf("[WebSocket] Disconnected :-( \n");
       connected = false;
+      ticker.attach(0.3, tick);
       break;
 
     case WStype_CONNECTED:

  if (root.containsKey("DS18B20"))
  {
    ave.push(root["DS18B20"]);
  }
}


#include <ArduinoOTA.h>
#include <WiFiUdp.h>
#include <Average.h>
//for LED status
#include <Ticker.h>
Ticker ticker;

extern "C" {
#include "user_interface.h"
