Hi, I try to make an autoresponder and using Arduino Mega 2560 and a-gsm v2.064 GSM Shield. I managed to send SMS to different phones, but can not receive messages. I used SendSMS and ReceiveSMS from Arduino examples. I mention that if I run the example ReceiveSMS does not work as well. It is a problem in cpde or the shield has a problem?
The code either receives an SMS, or it doesn't. Which is it?
The code either properly extracts the phone number, or it doesn't. Which is it?
The code either sends an SMS to that number, or it doesn't. It's clear that this answer will be that it doesn't, but we are no closer to understanding why.
Anonymous printing sucks. Print the phone number in a more intelligent fashion:
Serial.print("Get a text message from: [");
Serial.print(senderNumber);
Serial.println("]");
Do you have an official GSM shield? If not, what makes you think code written for one kind of hardware will work with yours? Have you looked for a library written specifically for yours?