This is the microcontroller program used for the scenario described in https://medium.com/@achildrenmile/iot-temperature-and-humidity-example-using-mxdevkit-and-custom-mqtt-broker-6d4916003a4d. The Microsoft MQTT example Sketch (https://microsoft.github.io/azure-iot-developer-kit/docs/projects/mqtt-helloworld/) was used as base and adapted according to the scenario described.