← All posts

Setting Plausibility Rules at the Gateway Before Sensor Data Reaches the Twin

Most digital twin problems that look like software bugs start with a single bad reading. A temperature sensor reports 85 degrees in a school classroom, or a water level sensor sends the same number for three days. If the twin accepts these values without question, dashboards mislead and alarms lose credibility. A good place to stop this is the gateway, the small device or service that collects readings from sensors before they travel to the platform.

The first rule is a range check. Every sensor type has physical limits: a room air sensor should not report minus 30, and a bus passenger counter should not report 400 people on a 12-metre vehicle. Limits come from the datasheet and from the place where the sensor is installed. A reading outside the range is not deleted. It is stored with a flag, so engineers can later see how often it happens and from which device.

The second rule is a rate-of-change check. Air temperature in a building cannot jump 20 degrees in one minute, while the temperature of a boiler outlet pipe may change quickly during start-up. So the allowed speed of change must be set per measurement and per asset, not as one global number. A sudden spike that fails this test often points to a loose cable, a power dip or an interference problem, not to a real event.

The third rule catches the opposite fault: a flatline. A sensor that returns exactly the same value for many hours, when similar sensors nearby are moving, has probably frozen. The time window depends on the signal. A door contact may stay unchanged all night, while a traffic counter on a main road should not. Comparing a sensor with its neighbours, such as two flow meters on the same pipe, adds a useful cross-check.

Flags should travel with the data, not replace it. The twin can then show a reading in grey, use the last good value for a short time, or ask an operator to inspect the device. Alerts built on flagged data should be held back or marked, so a crew is not sent to a pump because a cable came loose. Keep a short log of every rule that fires, and review it monthly. Rules that fire constantly are usually set too tight, and rules that never fire may be set too loose.

This work is not exciting, but it decides whether operators believe what they see on the 3D model. Platforms such as TwinUp's Clavus City depend on the same principle: a city twin is only as useful as the readings behind it, and checking them at the edge is cheaper than finding the problem after a wrong decision.

All posts

Frequently asked

What are plausibility rules for sensor data?

Plausibility rules are simple automatic checks that decide whether a sensor reading makes physical sense before it is trusted. Typical rules cover value range, speed of change and frozen signals. They do not prove a reading is correct, but they catch obvious faults such as impossible temperatures or a sensor repeating one number for days.

Why should sensor data be checked at the gateway instead of in the digital twin?

A gateway sits between the sensors and the platform, so checking there stops bad readings before they reach dashboards, models and alerts. It is also cheaper to catch a fault at the edge than to clean data or explain a wrong decision later. The twin then receives data that already carries quality flags.

What is a range check in IoT data validation?

A range check compares each reading with the physical limits of the measurement. A room air sensor should not report minus 30 degrees, and a passenger counter should not report 400 people on a 12-metre bus. Limits come from the sensor datasheet and from the installation location, and out-of-range values are flagged rather than deleted.

What is a rate-of-change check?

A rate-of-change check tests how fast a value moves between readings. Room air temperature cannot rise 20 degrees in one minute, while a boiler outlet pipe may change quickly at start-up. The allowed speed must be set per measurement and per asset. A failed test often points to a loose cable, a power dip or interference.

How do you detect a flatline or frozen sensor?

A flatline check looks for a sensor that returns exactly the same value for longer than expected. The time window depends on the signal: a door contact may stay unchanged all night, but a traffic counter on a main road should not. Comparing the sensor with neighbouring devices, such as two flow meters on one pipe, strengthens the check.

Should flagged sensor readings be deleted?

No. Flagged readings should be stored and travel with the data, so engineers can see how often faults occur and from which device. Deleting them hides the problem and removes evidence for maintenance. The twin can instead show the value in grey, use the last good value briefly, or ask an operator to inspect the device.

How should alerts handle flagged data?

Alerts built on flagged data should be held back or clearly marked as unverified. This prevents sending a crew to a pump because a cable came loose rather than because the pump failed. Operators keep trust in alarms when they know that each one rests on readings that passed basic checks.

What data is needed to set good plausibility rules?

Useful inputs are the sensor datasheet limits, the installation context, and the normal behaviour of each asset over time. Information about neighbouring sensors on the same pipe, road or room helps with cross-checks. Rules should be set per measurement type and per asset rather than as one global number.

How often should plausibility rules be reviewed?

A short log of every rule that fires should be kept and reviewed about once a month. Rules that fire constantly are usually set too tight and create noise. Rules that never fire may be set too loose and miss real faults. Regular tuning keeps the rules useful.

What are the limits of simple plausibility checks?

Simple checks catch obvious faults but not subtle ones, such as a sensor drifting slowly within its valid range. They also need tuning, because limits that are too tight cause false flags and limits that are too loose miss errors. They complement calibration and maintenance and do not replace them.

How do you start adding plausibility rules to a digital twin project?

Start with one sensor type and write down its datasheet range, a realistic rate of change and a sensible flatline window. Apply the three checks at the gateway, flag results without discarding data, and review the log after a few weeks. Then extend the approach to other sensor types and assets, as platforms like TwinUp's Clavus City rely on trustworthy input readings.