gsm alarm system with utrlasonic sensor

hello
Having some trouble here with code errors. I have built a code to monitor the distance of an object from the ultrasonic sensor and send an sms via gsm sim900a not a shield as shown in the image bellow with buzzer alarm by the define distance.

I’m sure its something simple i have missed but i have been pulling my :o hair out here for days trying to find an error but not getting anywhere. If anyone could help it would be absolutely amazing.
Thanks in advance

Johansmodi,

Please include a copy of your sketch if you think it’s not working. The picture does not help us understand what you’re doing or what the project is/isn’t doing.

Pat.