   sendUdpmsg(udppayload);
 }
 
-bool ICACHE_RAM_ATTR get_i2c_data() {
-  if (digitalRead(DATA_IS_RDY_PIN)) {
+bool ICACHE_RAM_ATTR get_i2c_data() 
+{
+  if (digitalRead(DATA_IS_RDY_PIN)) 
+  {
     pinMode(DATA_IS_RDY_PIN, OUTPUT);
     digitalWrite(DATA_IS_RDY_PIN, LOW);
     delayMicroseconds(5);

        bdoor_status = sensor_data.door;
      }
      
        if (_hash != sensor_data.hash) {
        payload = "{\"powerAvg\":";
        payload += sensor_data.ct1_rp;
        payload += ",\"FreeHeap\":";
        payload += ESP.getFreeHeap();
        payload += ",\"RSSI\":";

    digitalWrite(DATA_IS_RDY_PIN, HIGH);
    pinMode(DATA_IS_RDY_PIN, INPUT_PULLUP);
    return true;
  } 
  else 
  {
    return false;
  }
}

void setup() 
{
  system_update_cpu_freq(SYS_CPU_160MHz);
  Serial.swap();
  //
