In this tutorial, I will show you how to use the Arduino IDE to program an ESP8266 microcontroller to read sensor data and publish it using MQTT to a HiveMQ Cloud MQTT broker.
Further, I’ll show you how to receive MQTT messages as commands from the cloud and activate the microcontroller output to switch ON…