Here is how it’s possible to build your own DIY home alarm and surveillance system from a Raspberry Pi – PrivateEyePi is an open source, configurable, automated home alarm system which you can build and code yourself. Its creator documented the whole system extensively and provides parts lists and pricing; wiring schematics; and all the code you’ll need. You can use motion detectors, or switches attached to doors, or a mixture of the two. There are instructions on adding cameras to the setup, and you can even add a temperature gauge to check on whether your central heating’s working when you’re away. You’ll be able to monitor everything via your computer or smart phone.
You can install PrivateEyePi from here
It is also possible to add home surveillance to the project by using a third party application called “motion” to operate the webcam. Motion is great because: