Script not starting at boot

Hello,
I have DHT11 sensor connected to my Raspberry and I’m able to send the temperature and humidity by MQTT to OpenHab. I’ve followed this tutorial to do it. But I have problem with starting script at boot. I have everything set up in the same way as in the tutorial but the script is not working. I have to start it manually by typing ./dht.sh but it’s running in the SSH window and as soon as I close that the script stops.

have a look here, maybe you have a similar problem

1 Like

I found other solution. I had to instal paho-mqtt again.

sudo pip install paho-mqtt

that i guess would be good