Analog Input monitoring

Greetings.

I would like to know, is there a way to monitor an analog input continuously?
The nature of analog sensors are that they are quite fluctuative.

Is there a way to monitor it and react if the analog input isn't changing for a few moments? It's usually because of some kind of problem.

Thanks.

Yes.

Read sensor and store result.
2)
Read sensor and compare result with previous result. If result changed, store it again.
3)
Back to (2).

for my soil sensor, I take a reading and store it.
read the sensor every minute
subtract the difference, add it to a variable
after 60 minutes, divide the total of all the changes and then add that back to the stored first reading.
repeat