Main Content

Sensors, with an ESP32 LORA, can be easily designed for safety purposes involving gas, temperature, and humidity. Today, Im going to show you precisely how to use this microcontroller module as a Sender and Receiver. Also, I’ll show you how to use an Arduino Nano with an Ethernet module, and communicate over the Network. Considering that this subject is extensive, I promise to create a second article concerning this subject for next week, as well as a new video.
In this project, we have a simple assembly, which will work as an alarm to send SMS messages to your smartphone if problems arise. To do so, we will first employ a gas sensor module, MQ2, and the temperature and humidity sensor DHT22 (AM2302). Both will be read by the first ESP32 LORA, which will function as the Sender, and will send an alert to the second ESP32 Lora, which will be a Receiver. This provides safety for a situation such as a gas leak, for example.
Using a gas leak simulation, as in our demonstration (image above), the Sender will send a signal to the Receiver, which will turn on the Buzzer and the red LED. As the SPI port of this Receiver will already be busy, it will send the data via UART to the Arduino Nano. Through the SPI, it will then communicate with the Ethernet interface. The software on this Receiver will then send an SMS to your cell phone notifying a potential gas leak hazard.
The ESP32 will read the analog value and indicate the quantity of gas involved, and the risk of explosion in the analyzed location. This information will be directed to the SMS.
In our assembly, I placed an Ethernet cable interface on the Receiver. Why is this performed? Because we need reliability in this project, where there is guaranteed access even during WiFi failure. This ensures the sending of SMS, which can be replaced by email or connection, according to your preference and gateway availability.”

Link to article

Related Content