how to send Alert and avoid doing it second time (loop)?

you must keep a global variable that holds the last state + last time you send an SMS.

If you go through loop you will see the last known state is still 'alarm' and you can check how long ago you send the SMS.
If that is less than say 10 minutes you do not need to send a new SMS.

After 10 minutes you can decide to send an SMS to a second number etc