PUBLISHING MULTIPLE SENSOR READINGS TO NODE-RED USING MQTT PROTOCOL
Soham Das, Dr. K. Venkatesh
Department of Networking and Communication
SRM Institute of Science and Technology
Abstract - In this project, we aim to make a deep dive into the concepts of data collection from multiple sensors using the MQTT protocol. We would be using Node-red to publish the sensor readings with the help of ESP8266 MQTT and Arduino. ESP8266 would be taken as a publisher whereas Node-red will be taken as a subscriber. We would be using the humidity, temperature, and pressure sensors reading and publishing it to the dashboard created on Node-Red. Mosquitto broker will help in creating the publisher and subscriber connection.
For the project, we would use 3 kinds of sensors, the DHT22 sensor, the BME280 sensor, and the BME280 sensor. These 3 sensors are capable of detecting both temperature and humidity. The BME280 additionally also has the feature of sensing pressure
We decided to use the MQTT protocol because it is energy efficient and easy to deploy in different machines and is a very influential protocol if we see it in respect of Industry 4.0. MQTT in IoT uses quantity of Service(QoS) levels to ensure proper message delivery to the receivers even when there is an unreliable connection between two devices.
Node-Red is a robust graphical programming platform that is used for programming tools and types of equipment for wiring hardware devices, API, and online services. It provides a browser-based editor that makes it easy to wire together flows using the wide range of nodes in the palette that can be deployed to its runtime in a single click.
The documentation of the project will aim to study past studies and research and also explore the scope of the MQTT Protocol from the Industry 4.0 perspective. In industry, there are several kinds of machinery for which the temperatures are needed to be controlled and substances used where humidity control is necessary. The sensors that can be attached to our machinery can detect the temperature and humidity associated with it and provide valuable insight to the respective authorized personnel working with it. This will help in controlling system overheating.
With the help project, I propose a solution for monitoring the humidity, temperature, and pressure with help of multiple attached sensors and connecting the sensors with a dashboard build by us using Node-Red. The dashboard will receive the data from the sensor through MQTT protocol which is a light weight protocol which will be useful in low bandwidth areas also.