Physical security for exposed sensor

sensor

I am building a smart door at home. One of the features I am using is a PIR to detect if someone is staying behind the door. Unfortunately due to the facilities constraints the PIR and its cables will have be exposed.

I would like to make sure that I build a circuit resistant against malicious use. For example, someone connects the PIR wires into a 220V power plug.

Below you can see how I place all the components in my circuit:

enter image description here

I made sure to use some diodes and a resistor to ensure my Raspberry Pi doesn't get damaged. Is it enough to protect my system?

Best Answer

Aside: One of your diodes is the wrong way round.

Short answer - no. Even with a resistor in series, a Rasperry Pi isn't going to be happy with 220V AC shoved into one of the GPIO pins. And even with the diodes, the power supply pins are nowhere near protected.

I can't help thinking, though, that the easiest way to defeat your circuit is just to cut the wires. It doesn't appear to have any way to detect that.