wired security system

someone know where can i get a tutorial for a wired security system? like when you enter a building a alarm turns on?

Replace the explosive with a wire sound emitter.