Issue with alarm

wildbill:
If you're seeing the "rebooting alarm" message, I can't see any reason in the code why your digitalwrites wouldn't be executed. Looks more like a hardware problem. There is an issue with the code here:

  if (alarmState = 1)

Where == should have been used, but it didn't cause your issue.

I created another sketch that just toggles the relays on and off repeatedly, they are hooked up the exact same way and they work fine. Also, just to verify, my if statement should have been like this:

if (alarmState == 1)

Correct?