STOPPING A SERVO

So I have edited the code, as attached.

It is now, the servo will move to 60 when it is HIGH and move to 0 when it is LOW. does that make sense ?

But the problem now, my PIR is always detecting a motion, even when there is no movement. Meanwhile the servo, it is still moving despite being the PIR being HIGH or LOW.

I have also attached the screenshot of the value 'val', as attached.

Thank you.

sketch_sep28b_TRY_SERVOR_SENSOR.ino (1.16 KB)