Hello, Am using, GSM module, water proof ultrasonic sensor and Arduino uno

Am using GSM module sim800, I want it to send only single SMS when the sensor detect obstacle nearby. But it sends multiple SMS after a delay. Help please

did you found this device in ocean?

If you are unable to post the code that you used as a code-section . The only help left to give is this

This is the forum's programming section.
Did you forget something?