 
 void setup() {
   if (DEBUG_PRINT) {
-    //Serial.begin(74880);
     Serial.begin(115200);
   }
   delay(20);

    return;
  }

  if (( millis() - startMills ) < ( revMills / 3 )) {
    return;
  } else {
    revMills   = (millis() - startMills)  ;
    startMills = millis();
    irStatus   = !irStatus ;
  }
}

String macToStr(const uint8_t* mac)

    olddoorStatus = doorStatus ;
  }

  if (((millis() - sentMills) > REPORT_INTERVAL ) && ( irStatus == oldirStatus ) &&  ( revMills > 600 )) {
    sendmqttMsg(topic, payload);
    sentMills = millis();
  }

  if (( irStatus != oldirStatus ) && ( revMills > 600 )) {
    sendmqttMsg(topic, payload);
    sentMills = millis();
