Node-red count setting

The sensor is trying to use a counter in node red.
If the signal remains the same for 6 minutes, the count remains zero
If there's something wrong with the signal, I want to post it one by one
Is there a way?

Start by putting debug nodes after your inputs so that you can see what is incoming.

Thank you.