user8640: I faced a problem to send 1 SMS if an input is HIGH and if it is LOW no SMS will be sent. The code not working, just sends SMS when I turn the GPRS on and after that nothing happens.
Please check this link to see the code : the code
Thank you for helping in advance.

user13940: You need to attach an interrupt to the pin which is getting HIGH and then the function connected to the interrupt will have the code to send the SMS.
Just init the GPRS with connecting to the network then just wait for the interrupt to send anything.

8640: <p>I faced a problem to send 1 SMS if an input is HIGH and if it is LOW no SMS will be sent. The code not working, just sends SMS when I turn the GPRS on and after that nothing happens.</p>

<p>Please check this link to see the code : <a href="https://stackoverflow.com/questions/29818894/send-sms-for-1-time-with-arduino-gprs-sim900-if-an-iput-is-high">the code</a></p>

<p>Thank you for helping in advance.</p>
 13940: <p>You need to attach an interrupt to the pin which is getting HIGH and then the function connected to the interrupt will have the code to send the SMS.</p>

<p>Just init the GPRS with connecting to the network then just wait for the interrupt to send anything.</p>
