Send Single SMS only when triggered

In general the approach to doing something once only is to have a boolean flag, called say SMS_was_sent in your case, and initialise it to false.

Check the flag before you send the sms, and only send if it's false. Then set it true so it won't send again.

Then when the level is back in the safe range, set the flag to false, ready for next time.