 void pirStateChange() {
   static unsigned long last_interrupt_time = 0;
   unsigned long interrupt_time = millis();
-  if (interrupt_time - last_interrupt_time > 1000)
+  if (interrupt_time - last_interrupt_time > 500)
   {
     pir_alarm_state = true;
   }

        else if (pir_alarm_state) {
          digitalWrite(led_A_Pin, LOW);
          pir_alarm_state = false;
        }        
    }

  }

  unsigned humi;
  unsigned light;
  unsigned door;
  unsigned long hkey;
  unsigned test; //why isn't it working ?
};

struct data_received {
