History Visualization doesn't seem right

I'm monitoring a boolean (door state, open/close) with History Visualization enabled. When my sketch changes the value of this particular variable, the history plot seems to be correct. But when the sketch is idle for a while, with no state changes to this variable, I see long blocks of "true" being displayed when the value was actually "false". Sometimes a few minutes, sometimes even hours... In normal use the door is never open more than a few seconds. I have debugging prints to the console that show when this variable's state is changed, and for the periods in question, there was nothing happening.

I tried changing the update interval and that seemed to help for a while, but now it's back to misbehaving again.

Could you give us more information on this issue for us?

Are you sure it is not just parasitic noise you are getting ?

Could you take a few moments to READ THIS.
It will help you get the best out of the forum.

Bob.