Alarm diy with arduino

This is / was somewhere on the forum, from memory posted by @dlloyd. The relay is the switch.

image