debouncing on the code

Thank you septillion. No idea what is RS485. Gotta study that how to use. Delay is ok in the system since it is nearly possible for two occuring alarms simultaneously.