Counter to my code (Dead Man Switch)

when the value of my Flowsensor reach 20, the counter should begin to count.