How to avoid spikes

Hi,
i am fairly green with node-red and need some quick advise please.
I have a message coming in on an http input node (iBeacon URL call) and some activity pending upon it.
Now i have the problem thsat sometimes I have two inputs within a second or so (beacon in/out) for whatever reason.
So what I would like to achieve is:
record the input message, wait for 5 sec and check if it doesn't change again, only then continue the flow.
So like: only if the last input value was valid for more then X seconds, proceed.

How would I do that?

thanks, Till

Have a look at the trigger node for this