Dragino Lora Shield & Makerfabs Lora Temperature/ Humidity/ Soil Moisture Sensor V3

Hi Guys, I'm new here and looking for some guidance.

I have an Arduino Uno R4 WiFi and Dragino Lora Shield v1.4. I'm trying to receive data from the Makerfabs moisture sensor, but I'm not receiving anything on the Arduino serial output.

I have the jumpers on the shield set as default, and I had read that you don't need the jumpers at all and I have tried both configurations.

My testing code is

#include <SPI.h>
#include <RH_RF95.h>

// Define SPI pins
#define LORA_CS 10
#define LORA_RST 9
#define LORA_IRQ 2

// Singleton instance of the radio driver
RH_RF95 rf95(LORA_CS, LORA_IRQ);

// Define LED pin
int led = 9;

void setup() {
    pinMode(led, OUTPUT);     
    Serial.begin(9600);
    while (!Serial) {
        // Wait for Serial Monitor to open
    }

    Serial.println("Starting LoRa Receiver setup...");

    // Setup LoRa transceiver module
    pinMode(LORA_RST, OUTPUT);
    digitalWrite(LORA_RST, HIGH);

    Serial.println("Attempting to initialize LoRa module...");
    if (!rf95.init()) {
        Serial.println("Starting LoRa failed! Check your connections.");
        while (1);
    } else {
        Serial.println("LoRa initialization succeeded");
    }

    // Set frequency to 915 MHz
    if (!rf95.setFrequency(915.0)) {
        Serial.println("Failed to set frequency");
        while (1);
    }

    // Set transmitter power to max
    rf95.setTxPower(23, false);
}

void loop() {
    Serial.println("Checking for packets...");
    if (rf95.available()) {
        // Should be a message for us now
        uint8_t buf[RH_RF95_MAX_MESSAGE_LEN];
        uint8_t len = sizeof(buf);

        if (rf95.recv(buf, &len)) {
            digitalWrite(led, HIGH);
            Serial.print("Received packet: ");
            Serial.write(buf, len);
            Serial.print(" with RSSI ");
            Serial.println(rf95.lastRssi(), DEC);
            digitalWrite(led, LOW);
        } else {
            Serial.println("Receive failed");
        }
    } else {
        Serial.println("No packet received");
    }

    delay(1000); // Add a delay to avoid flooding the Serial Monitor
}

I have a serial connection to the moisture sensor and have updated that so that every 5 seconds or so(just for testing), its sending the updated data and I can see this is being sent.

The shield was purchased from Jaycar so is not an original Dragino.

This is the sensor I'm using, and I have two. One that is still default, and the other I have updated the sleep time. Lora Temperature/ Humidity/ Soil Moisture Sensor V3 | Makerfabs

All devices are 915MHz for NZ where I'm from.

The serial output is this.

Checking for packets...
No packet received

Any assistance on this would be greatly appreciated.

Could be a mismatch between the Makerfabs sensor code and its LoRa settings.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.