 
 PubSubClient client(mqtt_server, 1883, callback, wifiClient);
 
+//
 volatile float H, T1, T2, OT, PW;
 volatile int NW, PIR, HO, HL, unihost, rsphost, unitot, rsptot;
+volatile bool T2_UPDATE, OT_UPDATE, PW_UPDATE, NW_UPDATE, PIR_UPDATE, HO_UPDATE, HL_UPDATE;
 volatile bool msgcallback;
 
+//
 int sleepmode = LOW ;
 int o_sleepmode = LOW ;
 

      rsptot = atoi(temprsptot);
    }
  }
  msgcallback = !msgcallback;
}


  //T2 =  OT = PW = NW =  dustDensity = 0 ;
  PIR = HO = HL = moisture = unihost = rsphost = unitot = rsptot = 0;
  acquirestatus = 0;
  T2_UPDATE = OT_UPDATE = PW_UPDATE = NW_UPDATE = PIR_UPDATE = HO_UPDATE = HL_UPDATE = false;
  msgcallback = false;


