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

Hint: map does not make a floating point number