As you can see in the picture, I put two button when the button sos is active, state is equal to 1 , and when I press the power button, the first condition is established, and when press the power button again , I want to make a second condition. The first condition is immediately discontinued...