Looking for a best practice on handeling analog sensor failure.
In the event of failure, I’m essentially going to be reading float, which may be valid input for a given sensor.
Anyone have a best practice?
I’ve seen as suggestions: bounds, setting an upper and lower and if the swings swing through the bounds in too rapid of a fashion, invalidate the result.
Another was an array of values, and only treat as valid when the array was full. Any invalid measurement would empty the array.
Neither of these are really ideal, though, as the float could be inbounds, for n times and would all record as valid.
Anyone got any other methods?