Credit:
As you may imagine, creating all that is not exactly a quick walk in the park, but it's doable. If you're the imaginative type, you can create complex commands through a bash script and have them executed when the tripwire detects a trespasser.
For full requirements and detailed instructions, head on over to Instructables. You can also check a demonstration video below.