Alarm disable PIR sensor

So I've got an alarm that has 3 buttons, first 2 for time setup, and the 3rd to start the alarm. It s a trigger alarm with countdown. I want to use a PIR sensor that when the time is up and the buzzer starts will cancel my buzzer, practically resets my alarm when movement is near the sensor.

I tried something like this for the sensor code stopping:


Let's see your whole program so that advice can be given in context. What happens when you use the code you tried ?



I managed guys in the end. :)