This project demonstrates a simple implementation of LoRa communication for monitoring temperature and humidity. The system consists of two modules:
- Sender Module: Reads temperature and humidity data using a DHT sensor and transmits it over LoRa.
- Receiver Module: Receives the transmitted data and displays it along with RSSI and SNR information.
LoRa-Temperature-Humidity-Monitor/
├── sender/
│ ├── sender.ino # Code for the sender
├── receiver/
│ ├── receiver.ino # Code for the receiver
├── README.md # Project documentation
- Heltec LoRa board (or compatible LoRa module)
- DHT11/DHT22 sensor
- Jumper wires
- Heltec LoRa board (or compatible LoRa module)
- Arduino IDE
- Heltec LoRa library
- RadioLib library
- The sender module reads temperature and humidity data using the DHT sensor.
- The data is formatted into a string and sent via LoRa at regular intervals.
- The receiver module listens for incoming LoRa packets.
- When a packet is received, it displays the temperature, humidity, RSSI, and SNR on the console.
-
Clone this repository:
git clone https://github.com/wassim-55/LoRa-Temperature-Humidity-Monitor.git
-
Open the
sender/sender.inoandreceiver/receiver.inofiles in Arduino IDE. -
Install required libraries in Arduino IDE:
- Heltec LoRa library
- RadioLib library
-
Configure the LoRa settings (frequency, bandwidth, spreading factor) in both the sender and receiver code to match your region's regulations.
-
Upload the
sender.inocode to the sender device andreceiver.inocode to the receiver device.