Added GPIO read calls to the alarm armed status pin. To be tested.