[SOLVED]Arduino Mega with GSM shield not actually sending SMS like it says it is

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...).

Thank you for your time!

Thanks

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.

From the illustration of the shield it appears to use pins D2 & D3 for communication? And you appear to be using D3 to communicate with the LCD?

I believe that is when using the Arduino Uno and not the Mega. There is a different setup for that.

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!