Changed bounce time - it appears that the falling edge is triggering the alarm.