an alarm is used in security systems.