I hope if anyone can help me with this problem. I recently started to experiment with Node-red; however, my progress is currently limited by my lack of experience in JS.
I currently have a sensor that outputs the received signals as numbers; however, I noticed that the sensor would keep repeating the last value without new signals. (it supposed to send 0).
Do you guys know any existing or custom nodes that can send out a default value if the last three incoming payloads are the same value.
Again for simplicity, essentially, what I am trying to create is a node that sends "0" if the last several msgs are the same.
Thanks in advance guys