Simple MQTT temperature sensor

Note: this post was first published on Mevisys website.

In the previous post about monitoring temperature we have used a simple RS-485 connection to communicate with a sensor. While this approach is very simple and has been proven to work well in many applications it can be complicated when the amount of connected sensors increases. Also adding or removing sensors can cause complications.

Modern technologies allow us to connect sensors using existing computer networks. For example the incredible ESP32 SoC can easily be programmed to read data from a sensor and relay them over WiFi using MQTT protocol.

Continue reading