How to stop/do something if analog value has not changed in a certain amount of time

as an additional hint: you posted this questions three times.
This is against forum-rules. You are in danger to get temporarily banned from the forum through cross-posting.

so please report the two other posts to the moderator to delete the yet unanswered threads

best regards Stefan