Alarm diy with arduino

In the schematic in post #2, you can also detect that one tries to temper with the 5V.

But there is a flaw in the schematic in reply #4. If you apply a hard 5V on the emitter of Q1 and the PIR sensor activates, Q1 more than likely dies.