How to block a box collision with a wall?

Thank you for your response it kind of work ( the last branch it’s true and not false right if something collapse then the alarm is on ?)

Another little problem if : if my alarm detect my player and then i’m hiding behind the wall, it’s still work no ?