REMOTE CAMERA SECURITY SYSTEM/DETECTION
This is handled by motion service:
sudo apt-get install motion
sudo nano /etc/default/motion
change deamon to yes
sudo nano /etc/motion/motion.conf
change yes no
stream_local to no
sudo service motion start &
sudo modprobe bcm2835-v4l2 &