Why don't you set a flag at the set time
Then in the loop if alarmflag equals true make sound.
Also check button state and if true set alarmflag to false
Why don't you set a flag at the set time
Then in the loop if alarmflag equals true make sound.
Also check button state and if true set alarmflag to false