These scripts require the python mqtt packages to be installed install pip sudo pip install paho-mqtt