sudo pip install RPi.GPIO sudo pip install paho-mqtt + Motion : Test the camera : https://thepihut.com/blogs/raspberry-pi-tutorials/16021420-how-to-install-use-the-raspberry-pi-camera https://www.hackster.io/sushree-subhasmita-jena/live-cam-with-raspberry-pi-e9f43d?fbclid=IwAR25LTpxOS3ov0PHO0odFYlHiLVyvmAwY2ioLGUCpobtRMRLGIdzrrTOhYE http://www.richardmudhar.com/blog/2015/02/raspberry-pi-camera-and-motion-out-of-the-box-sparrowcam/