Thank you for posting this here is an example built using your string conversion idea
Mqtt_Esp8266_Dhtv2.ino (4.57 KB)