How to spot a gap in a temperature sensor log
Use three freezer readings to distinguish a measured zero from a missing five-minute update.
Published by the current site publisher on .
Suppose you are reviewing an overnight freezer log. The logger is configured to take one temperature reading every five minutes. Three updates appear in your export. Did the freezer reach zero, or did the logger miss a reading?
Read the timestamp and the channel together
In the original sensor update format, lastUpdate belongs to the update. The temperature is the current-value inside its temperature channel. Here is the middle update from our fictional log. This example uses Unix seconds and degrees Celsius.
{
"lastUpdate": 1796198700,
"channels": {
"temperature": {"current-value": 0}
}
}
Compare the readings with the expected times
Sort the updates for this sensor and channel by timestamp. Write down the five-minute slots from 08:00 through 08:15 UTC on December 2, 2026, then match each update to its slot.
| Time | lastUpdate | Reading |
|---|---|---|
| 08:00 | 1796198400 | −0.4 °C |
| 08:05 | 1796198700 | 0 °C |
| 08:10 | No update in the export | |
| 08:15 | 1796199300 | −0.2 °C |
The 08:05 update contains a measured zero. The next timestamp is 600 seconds later, twice the expected interval. That leaves one missing slot at 08:10. Keep it marked as missing. Filling it with zero would invent a second measurement at freezing point.
What to check before reporting a gap
Confirm the sampling schedule and timestamp units for your device. A change-only sensor can legitimately stay silent between changes. For a scheduled logger, check the device’s local log and rerun the export after delayed uploads arrive. The three records alone cannot tell you the temperature at 08:10 or where the update went missing.
Review Basic concepts for the relationship between streams and channels, or consult the original servIoTicy data model.
