Raspberry Pi Agent 2.0

okay, sorry, you are using MQTT python, so have a look at this approach by @adam DHT11/DHT22 with Raspberry Pi