how can i start the timer for example when the analog input from the pot is 3 V and stop the timer when it is 5 V ?

thanks