           lastReconnectAttempt = 0;
         }
       }
-      } else {
+    } else {
       if (bdoor_status != sensor_data.door) {
         doorpayload = "{\"DOOR\":";
         if ( sensor_data.door == 0 ) {

        payload += "}";

        sendmqttMsg(topic, payload);
        _salt = sensor_data._salt;
      }
      client.loop();
      }
    */
    ArduinoOTA.handle();
  } else {
    wifi_connect();

  } else {
    return false;
  }
}

void setup() {
