How to make a minecraft defense system?

My friends and I are making a map based on the movie "The Purge", and we were wondering on how we can make home defense systems, just incase an intruder tries to break in. I'm trying to make something as if, with one lever or switch will block all the doors and windows, as seen in the movie. Any help or suggestions will be appreciated.

Make sticky pistons on the floors or wherever you want them to be. You can set it up so that when you press a button they'll all move the block in front of them up/down/forward from where they are and block whatever it is you want blocked.

(I say sticky pistons bc if you make regular pistons, they'll just move the block instead of moving the block back when you press the button again)