why a relay at all ? the 2n7000 could drive that alarm directly with ease
I never thought of that, great idea, cheers Richard.

What do you think the best way to drop the 12v from the sensor output to 3.3v into the pic, would the voltage divider be ok/work?