Considering that it offers a solution to many current problems, today I am continuing the discussion concerning the ESP32 LORA, a marvel for this Internet of Things world. In this article, I deal again with safety when discussing an infrared (IR) barrier alarm. Our project is formed by two communicating ESP32 LORAs.
One will be the ISSUER and will be connected to the infrared barrier sensor. The other, the RECEIVER, will be connected to a relay module. Each second, the ISSUER sends a code to the RECEIVER with the current state of the barrier. All of this is performed to avoid problems that often occur with the connection of barriers while using wires. Therefore, our intention is to replace all wiring by LORA radios.”

Link