dragino / lse01
Dragino LSE01
Soil probes are calibration-sensitive. Use this decoder as a template; correlate with handheld readings on site.
Decoder
Copy into ChirpStack or paste in the playground.
// Dragino LSE01 — soil EC / moisture (example; calibration varies)
function decodeUplink(input) {
try {
const bytes = input.bytes;
const decoded = {};
decoded.battery_v = (((bytes[0] << 8) | bytes[1]) & 0x3fff) / 1000;
if (bytes.length >= 9) {
decoded.soil_moisture = (bytes[2] << 8) | bytes[3];
decoded.soil_temperature = (((bytes[4] << 8) | bytes[5]) / 100).toFixed(2);
decoded.soil_ec = (bytes[6] << 8) | bytes[7];
}
return { data: decoded };
} catch (err) {
return { errors: [`Decoder error: ${err.message}`] };
}
}