LoRaWAN Sensor Alarms: Thresholds, Hysteresis and Recovery
LoRaWAN Sensor Alarms: How to Reduce Repeated Alerts and Confirm Recovery
A water-level reading moves slightly above and below its alarm threshold. A temperature sensor sends repeated warnings during the same prolonged event. An operator acknowledges a notification, but the dashboard still provides no clear indication that conditions have returned to normal.
These problems are not necessarily caused by poor wireless coverage. They can result from incomplete alarm rules.
Useful LoRaWAN sensor alarms need more than a high or low limit. A project should define when an alarm starts, how it remains active, when reminders are sent, and what evidence is required to clear it.
For farms, warehouses and distributed industrial sites, this makes alerts easier to interpret and act on.
Define the Alarm Before Choosing Its Threshold
Start with the action an operator should take.
A low tank-level alert may prompt a refill. A high-temperature alert may require an inspection. A sensor fault may require maintenance rather than a response to the measured condition.
Each alarm specification should identify:
- The measurement and its unit.
- The condition that triggers attention.
- The person or team responsible.
- The required response time.
- The recovery condition.
- The treatment of missing or invalid measurements.
Avoid using a single “abnormal” status for every situation. A valid low-water measurement and a disconnected level probe require different investigations.
Separate Trigger and Recovery Thresholds
If an alarm activates and clears at exactly the same value, small measurement changes can repeatedly switch its state.
Hysteresis introduces a gap between the trigger threshold and the recovery threshold.
Consider this illustrative low-water rule:
| Parameter | Example configuration |
|---|---|
| Alarm trigger | Water level falls below 20% |
| Recovery condition | Water level rises to at least 25% |
| Between 20% and 25% | Keep the previous alarm state |
| Invalid measurement | Evaluate a separate sensor-fault rule |
Under this rule, a level increase from 19% to 21% does not immediately clear the alarm. Recovery requires a valid reading of at least 25%.
These values are examples, not universal settings. Appropriate limits depend on tank geometry, refill arrangements, measurement uncertainty and the time available for intervention.
For a high-level alarm, the relationship is reversed: the recovery threshold sits below the trigger threshold.
Use Persistence Rules for Brief Excursions
Hysteresis addresses repeated switching around a boundary. Persistence addresses how long a condition must be observed before an alarm activates.
A project might require three consecutive valid measurements outside the permitted range instead of triggering from one sample.
If measurements occur every minute, the third consecutive out-of-range sample arrives two minutes after the first. Depending on when the physical change began, detection may take approximately two to three minutes, before communication and notification delays are considered.
A persistence rule can reduce alerts caused by short fluctuations, but it also delays detection. Choose it according to the monitored process.
Specify what happens when a sample is missing or invalid. The system should not silently treat missing data as evidence that the condition remained continuously abnormal—or returned to normal.
Decide Where Alarm Evaluation Happens
Alarm logic can run inside the sensor, on the application platform, or across both.
Device-Side Evaluation
A compatible device evaluates locally collected measurements and generates an event when its configured condition is met.
This can support event reporting between routine scheduled uploads. However, the available threshold, persistence and recovery functions depend on the exact firmware.
For example, Milesight’s EM410-RDL documentation describes threshold events, configurable alarm reporting repetitions and optional alarm-dismiss reports. This demonstrates why buyers should inspect the actual event behavior rather than assume that every product implements the same meaning of “threshold alarm.”
Platform-Side Evaluation
The application evaluates measurements after receiving them.
This allows centralized rules and site-specific workflows, but the platform can only assess the data it receives. A brief excursion between uploaded measurements may be invisible unless the device separately reports or stores it.
Combined Evaluation
A useful design may let the device detect a local threshold crossing while the platform manages reminders, escalation and operator acknowledgement.
Define which component owns each state transition so that two independent rules do not create duplicate incidents.
Separate Active Alarms from Notifications
An alarm state and a notification are different records.
One low-water incident might remain active for an hour. During that period, the platform could send an initial notification, a reminder and an escalation without creating three separate incidents.
A practical design should distinguish:
| Record or state | Meaning |
|---|---|
| Active alarm | The configured abnormal condition has been detected and has not cleared |
| Notification | A message was generated for a recipient |
| Acknowledgement | An operator recorded that the event was seen |
| Recovery | Valid evidence met the configured clearing rule |
| Data unavailable | The current condition cannot be established from sufficiently recent valid data |
Acknowledgement should not automatically mark a measurement as normal. Similarly, a successful message submission does not prove that a person read it.
Record these actions separately so event history remains understandable.
Treat Missing Recovery Messages Carefully
A device may report an alarm, then lose connectivity before it reports recovery.
The platform should not clear the event simply because no further alarm messages arrive. Depending on the agreed logic, it may keep the incident open while marking its current condition as unverified.
Useful fields include:
- Original event time.
- Latest valid measurement and acquisition time.
- Server receipt time.
- Most recent device communication.
- Acknowledgement time.
- Recovery time, when established.
If delayed records arrive after connectivity returns, preserve their original timestamps. A historical recovery should not be presented as a newly measured condition.
For communication investigations, use the separate LoRaWAN device offline troubleshooting guide.
Validate the Measurement Behind the Alarm
Correct alarm logic cannot compensate for an incorrectly interpreted measurement.
Before setting limits, confirm the unit, scaling, calibration and installation arrangement.
For a tank application, a sensor may measure the distance from its mounting position to the liquid surface. That distance may increase as the tank empties. Treating it directly as liquid depth could reverse the intended alarm behavior.
Also distinguish liquid height from volume. In tanks with a nonuniform cross-section, a given percentage of height may not represent the same percentage of capacity.
The LoRaWAN tank level sensor integration guide provides related context for planning the measurement and installation.
Avoid Uncontrolled Alarm Repetition
An abnormal condition that persists should not automatically create an uplink for every measurement.
Define an event strategy that fits the application:
- Send a report when the alarm first becomes active.
- Send additional reports according to a defined reminder policy.
- Report recovery when supported and configured.
- Continue routine status reporting as required.
Some projects may need more frequent updates during an incident. Validate the resulting energy use and network traffic across the expected device population.
For example, consider what happens when many outdoor sensors respond to the same weather event. Evaluate the combined reporting behavior rather than testing only one device on a quiet network.
Test the Alarm Lifecycle Before Deployment
A commissioning test should cover both activation and recovery.
| Test | Behavior to verify |
|---|---|
| Stable normal reading | No active process alarm |
| Brief threshold crossing | Behavior matches the persistence rule |
| Sustained abnormal condition | Alarm activates as specified |
| Reading fluctuates near the limit | Hysteresis prevents unwanted switching |
| Operator acknowledgement | Review action is recorded separately |
| Valid recovery | Alarm clears under the defined rule |
| Sensor fault | Invalid data is distinguished from a process alarm |
| Network interruption | Missing information remains visible |
| Device restart | State handling matches the agreed specification |
Compare the device’s event records with platform incidents and delivered notifications. This helps identify whether an unexpected result originates in measurement, firmware, decoding or application logic.
Specify LoRaWAN Alarm Functions for an OEM Project
For custom development, include an alarm behavior table in the specification.
Provide the sensor interface, measurement range, required units, sampling schedule, trigger thresholds, recovery rules and expected deployment scale. Also specify event timestamps, local storage requirements and behavior after a restart.
Shenzhen Jinshengchang Technology Co., Ltd. offers custom LoRaWAN PCB design and development. Threshold logic, event payloads and platform workflows should be confirmed for the selected project rather than assumed to be standard features of every device.
A well-defined alarm should tell the operator what happened, whether the information is current, and what evidence will close the incident.
Frequently Asked Questions
Does every LoRaWAN sensor support hysteresis?
No. Some devices provide basic high and low thresholds, while others offer additional recovery or persistence settings. Check the selected model and firmware.
Can hysteresis be implemented on the platform?
Yes, if the platform receives suitable measurements and supports stateful rules. Its detection performance still depends on the frequency and reliability of incoming data.
Does acknowledging an alarm clear the physical condition?
No. Acknowledgement records an operator action. Recovery should follow the configured measurement-based rule.
Should an alarm clear when a device goes offline?
An offline state does not establish recovery. The platform should show that current measurement information is unavailable and preserve the incident according to the agreed policy.
How can repeated alarms be reduced?
Check the measurement quality, use suitable trigger and recovery thresholds, define persistence where appropriate, and separate one ongoing incident from its reminder notifications.