   } else {
     return false;
   }
-  //delayMicroseconds(5);
-  //attachInterrupt(digitalPinToInterrupt(DATA_IS_RDY_PIN), data_isr, RISING);
 }
 
 void setup() {

  sendUdpSyslog(syslogPayload);
}

bool ICACHE_RAM_ATTR get_i2c_data() {
  //detachInterrupt(digitalPinToInterrupt(DATA_IS_RDY_PIN));
  //delayMicroseconds(5);
  if (digitalRead(DATA_IS_RDY_PIN)) {
    pinMode(DATA_IS_RDY_PIN, OUTPUT);
    digitalWrite(DATA_IS_RDY_PIN, LOW);

        bdoor_status = sensor_data.door;
      }

      /*
        if (_hash != sensor_data.hash) {
        payload = "{\"hash\":";
        payload += sensor_data.hash;
        payload += ",\"pls_no\":";
        payload += sensor_data.pls_no;
        payload += ",\"pls_ts\":";
        payload += sensor_data.pls_ts;
        payload += ",\"FreeHeap\":";
        payload += ESP.getFreeHeap();
        payload += ",\"RSSI\":";
