   T2 =  OT = PW = NW =  dustDensity = SquareWaveCount = old_SquareWaveCount = 0 ;
   PIR = HO = HL = moisture = unihost = rsphost = unitot = rsptot = 0;
   msgcallback = false;
-  lastReconnectAttempt = 0;
 
   Rtc.Begin();
   Rtc.SetIsRunning(true);
   Rtc.SetSquareWavePin(DS1307SquareWaveOut_1Hz);
+
+  lastReconnectAttempt = 0;
 
   pinMode(SquareWavePin, INPUT_PULLUP);
   attachInterrupt(SquareWavePin, check_SquareWaveCount, FALLING);

  clientName += " - ";
  clientName += String(micros() & 0xff, 16);

  lcdInitialize();

  WiFiClient::setLocalPortStart(analogRead(A0));
  wifi_connect();


  if (timeStatus() == timeNotSet) {
    setSyncProvider(getNtpTime);
  }

  // lcd
  lcdInitialize();

  //OTA
  // Port defaults to 8266
