Soil Moisture Monitoring with SE01 + ThingsBoard
Soil Moisture Monitoring with SE01 + ThingsBoard
Background
| Item | Detail |
|---|---|
| Products Used | SE01-LB × 5, LPS8V2 × 1 |
| Network Server | TTN (The Things Network) |
| Application | ThingsBoard CE (self-hosted) |
| Customer Scenario | Customer 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
- Register the gateway (LPS8V2) on TTN Console
- Create Application, register each SE01-LB device
- Add Payload Formatter (use Dragino decoder from GitHub)
3. ThingsBoard Integration
- Create MQTT Integration in ThingsBoard pointing to TTN MQTT broker
- Configure Data Converter to parse decoded payload
- 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