 String getResetInfo ;
 int ResetInfo = LOW;
 
-//StaticJsonBuffer<350> jsonBuffer;
-
 PubSubClient client(mqtt_server, 1883, callback, wifiClient);
 
-// volatile
-float H  ;
-float T1 ;
-float T2 ;
-float OT ;
-float PW ;
-
-int NW ;
-int PIR  ;
-int HO  ;
-int HL;
-
-int unihost;
-int rsphost;
-int unitot;
-int rsptot;
+float H  , T1 , T2 , OT , PW ;
+int NW , PIR  , HO  , HL;
+
+int unihost, rsphost, unitot, rsptot;
 
 int sleepmode = LOW ;
 int o_sleepmode = LOW ;

    wifi_connect();
  }


  /*
    if (WiFi.status() == WL_CONNECTED) {
      if (!client.connected()) {
        if (DEBUG_PRINT) {
          Serial.print("failed, rc=");
          Serial.println(client.state());
        }
        long now = millis();
        if (now - lastReconnectAttempt > 1000) {
          lastReconnectAttempt = now;
          if (reconnect()) {
            lastReconnectAttempt = 0;
          }
        }
      }
    } else {
      wifi_connect();
    }

  */
  if (timeStatus() != timeNotSet) {
    if (now() != prevDisplay) { //update the display only if time has changed
      prevDisplay = now();

float dustDensity ;
int moisture ;

float OLD_H  , OLD_T1 , OLD_T2 , OLD_OT , OLD_PW ;
int OLD_NW , OLD_PIR  , OLD_HO  , OLD_HL  ;

float OLD_dustDensity ;
int OLD_x ;
