GSM Activate! Need Help!

Hello Everyone,

I need a little help, I am pretty unused to Arduino coding and i need this code to work now before my final project at school.

Here’s the deal, I’m using SendSMS example (http://www.arduino.cc/en/Tutorial/GSMExamplesSendSMS) from Ardino and It works very well.

I NEED to make this code work as in: Programmed SMS gets sent to [number] when D5 (or any other) on the Arduino is HIGH, just like when pushing a button.

I’m using a Danfoss Electric Controller and when the alarm goes on in the EC a relay opens the circut to 5V into D5 and SMS gets sent.

Basicly, SMS Sending Once when D5 is HIGH (and again of course when gets LOW and then HIGH again).

THanks!

SM

Where is your code that you wrote and isn’t working?