Hello,
I am creating a device that will send a text message to the user when motion is detected using a PIR sensor. I have tested the GSM shield and it can send texts just fine using the sample code. However, when I put that same code into my program which uses the sensor/keypad/lcd it acts like it sends the text and even says it is complete, except it doesn't really send the text. I'm not sure what I am missing here as it worked just fine when I tested it previously even with all the same connections(just not with the code added for sensors and ect...).
I've only had a quick skim through your code but I can't see how you are connecting to the shield? And what shield, and where did you get the the GSM library from?
I'm using the official Arduino GSM shield that connects directly on top of the Arduino Mega. The library is from the standard libraries that come with the Arduino IDE.
After looking at what you were saying about D3...you were correct! I was confused at the fact that pin2 had to be jumped with pin 10 and completely forgot about pin 3. It works! Thank you!