STOPPING A SERVO

Your code tells the servo to move to 90 and then to 60 when the signal is HIGH.

It tells the servo to move to 0 when the signal is LOW.

If that is not what actually happens then you need to explain clearly what does happen.

Put in some code to print the value of val. Maybe it is not what you think it is

...R