 #define LED_PIN 13
 
 #define BETWEEN_RELAY_ACTIVE 1000
+#define REPORT_INTERVAL 5000 // in msec
 
 IPAddress mqtt_server = MQTT_SERVER;
 

    if (bRelayReady)
    {
      change_light();
      sendCheck();
      lastRelayActionmillis = millis();
      bUpdated = false;
    }

    }
    else
    {
      if (millis() - startMills > REPORT_INTERVAL)
      {
         sendCheck();
         startMills = millis();
      }
      client.loop();
    }
    ArduinoOTA.handle();
