Value change monitoring

I have a sensor who’s readings are oscillating due to noise, so I need to compare the value change over a longer period of time, say a few seconds. This way the value change will be more significant and easier to detect.

How can I do that, or if there is any better way of dealing with that noise so I can sense the actual value change?

I tried some helpers, but I could get anything useful yet. Any help would be greatly appreciated.

Consider using the Filter integration.