When building an IoT application, collecting sensor readings is usually straightforward. The challenging part begins when those readings become unreliable or stop arriving altogether.
Imagine a monitoring dashboard receiving temperature readings every five seconds. Everything works as expected until a device briefly loses its network connection.
Should the dashboard continue displaying the previous reading? Should it show zero? Or should it inform the user that the latest measurement is unavailable?
These small decisions can make a significant difference in how trustworthy an application becomes.
In this article, we'll look at a few practical approaches to handling missing sensor data.
1. Understanding the Problem
Consider an IoT temperature sensor that sends readings at regular intervals.
A normal IoT temperature sensor sends readings at regular intervals. For example, at 10:00:00, the temperature is 28.5°C. Five seconds later, at 10:00:05, it increases to 28.7°C.…