Skip to main content

Soil Moisture Monitoring with SE01 + ThingsBoard

Soil Moisture Monitoring with SE01 + ThingsBoard​

Background​

ItemDetail
Products UsedSE01-LB × 5, LPS8V2 × 1
Network ServerTTN (The Things Network)
ApplicationThingsBoard CE (self-hosted)
Customer ScenarioCustomer needs to monitor soil moisture and temperature across 5 agricultural fields, with real-time dashboard and threshold alerts

Solution Architecture​

SE01-LB (×5) → LPS8V2 Gateway → TTN → MQTT Integration → ThingsBoard
↓
Dashboard + Alerts

Step-by-Step​

1. SE01-LB Configuration​

AT+NJM=1 // Set to OTAA mode
AT+BAND=5 // EU868 (adjust for your region)
AT+DR=3 // Data Rate 3
AT+TDC=1800000 // Uplink every 30 minutes
AT+CFM=1 // Confirmed uplink

2. TTN Setup​

  1. Register the gateway (LPS8V2) on TTN Console
  2. Create Application.
  3. Register each SE01-LB device.
  4. Add Payload Formatter.
    • Use Dragino decoder from GitHub.

3. ThingsBoard Integration​

  1. Create MQTT Integration in ThingsBoard pointing to TTN MQTT broker
  2. Configure Data Converter to parse decoded payload
  3. Create Device Profile with alarm rules for soil moisture < 20%

4. Dashboard​

Create widgets for:

  • Real-time soil moisture gauge (per field)
  • Temperature trend chart (7-day history)
  • Alarm notification panel

Result​

  • 5 fields monitored in real-time with 30-minute intervals
  • Alerts triggered when soil moisture drops below threshold
  • Battery life estimated at 2+ years with 30-minute reporting interval

Notes​

  • If the field is large, consider SF12 for maximum range but note the duty cycle limits
  • ThingsBoard CE free tier supports up to 30 devices