 
 //
 #define INFO_PRINT 0
-#define DEBUG_PRINT 1
+#define DEBUG_PRINT 0
 
 // rtc
 

  T2 =  OT = PW = NW =  dustDensity = SquareWaveCount = old_SquareWaveCount = 0 ;
  //T2 =  OT = PW = NW =  dustDensity = 0 ;
  PIR = HO = HL = moisture = unihost = rsphost = unitot = rsptot = 0;
  msgcallback = false;


  Rtc.Begin();
  Rtc.SetIsRunning(true);
  Rtc.SetSquareWavePin(DS1307SquareWaveOut_1Hz);

  lastReconnectAttempt = 0;

  pinMode(SquareWavePin, INPUT_PULLUP);
  attachInterrupt(SquareWavePin, check_SquareWaveCount, FALLING);
  // call check_SquareWaveCount every loop, so not use ONLOW
  // attachInterrupt(SquareWavePin, check_SquareWaveCount, ONLOW);


// globals
bool bDHTstarted;       // flag to indicate we started acquisition
int acquireresult;
int acquirestatus;
int _sensor_error_count;
unsigned long _sensor_report_count;

// This wrapper is in charge of calling
// must be defined like this for the lib work
void  dht_wrapper() {
  DHT.isrCallback();
}

void  callback(char* intopic, byte* inpayload, unsigned int length) {
  String receivedtopic = intopic;
  String receivedpayload ;

