Arduino software for detecting and reacting to triggerd firealarms