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


  // connect D2 pin as an External Interrupt - Reed switch
  attachInterrupt(0, doorStateChange, CHANGE);
  attachInterrupt(1, pirStateChange, CHANGE);
}

//////////////////////////////////////

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

struct data_received {
