Gsm module not sending message..

i’m doing project gas detector using arduino with gsm module…
The problem is why gsm not sending message… The gsm signal seems to be fine…
is it the problem with my program??

#include<SoftwareSerial.h >
#include<LiquidCrystal.h>
LiquidCrystal lcd(12,11,5,4,3,2);
SoftwareSerial mySerial(9,10);
int buzzerPin=8;
int lpg_sensor= A0;
int gas_value;
int data = 0;
void setup()

{
pinMode(buzzerPin,OUTPUT);
pinMode(lpg_sensor,INPUT);
mySerial.begin(9600);
Serial.begin(9600);
lcd.begin(16,2);

}
void loop()
{
data = analogRead(gas_value);

Serial.print("Gas Level: ");
Serial.println(data);
lcd.print (“Gas Scan is ON”);
lcd.setCursor(0,1);
lcd.print("Gas Level: ");
lcd.print(data);
delay(1000);

if ( data > 70) //
{
digitalWrite(buzzerPin, HIGH);
SendMessage();
Serial.print(“Gas detect alarm”);
lcd.clear();
lcd.setCursor(0,0);
lcd.print(“Gas Level Exceed”);
lcd.setCursor(0,1);
lcd.print(“SMS Sent”);
delay(1000);

}
else
{
Serial.print(“Gas Level Low”);
lcd.clear();
lcd.setCursor(0,0);
lcd.print(“Gas Level Normal”);
delay(1000);
}
{
digitalWrite(buzzerPin,LOW);
lcd.print(“Gas Leakage Detected!!”);
delay(1000);
lcd.clear();
delay(500);
}

lcd.clear();
}

void SendMessage()
{
Serial.println(“I am in send”);
Serial.println(“AT+CMGF=1”); //Sets the GSM Module in Text Mode
delay(1000); // Delay of 1000 milli seconds or 1 second
Serial.println(“AT+CMGS=”+601117952376"\r"); // Replace x with mobile number
delay(1000);
Serial.println(“Excess Gas Detected. Open Windows”);// The SMS text you want to send
delay(200);
Serial.println((char)26);// ASCII code of CTRL+Z
delay(1000);
}

im doing the fyp project…

What do your Serial and lcd print messages say is happening ?

Does a GSM message get sent in a simpler test program that does not depend on the value returned by a sensor ?

I'm still new with the programming so i don't really quiet get what you asking.. but if you asking how the sensor works.. i set sensor 70 ppi thats mean when gas level reach over 70 ppi.. the buzzer on and in lcd will appear the warning of leakage gas and sending message... My project right now only gsm just not sending message.. i thought maybe there are problem with the coding..

i set sensor 70 ppi thats mean when gas level reach over 70 ppi.. the buzzer on and in lcd will appear the warning of leakage gas and sending message...

What gas level is printed on the LCD ?

Does the buzzer actually sound and do you see the message when the gas level is over 70 ?

Normal gas level 18 and yes the buzzer sound and the message appear on LCD but gsm not sending the message

The problem is why gsm not sending message..

SoftwareSerial mySerial(9,10);

Is the GSM modem connected to the Arduino with software serial? If so, then the
SendMessage function should be using software serial and not Serial.

void SendMessage()
{
Serial.println("I am in send");
mySerial.println("AT+CMGF=1"); //Sets the GSM Module in Text Mode
delay(1000); // Delay of 1000 milli seconds or 1 second
mySerial.println("AT+CMGS=\"+601117952376\"\r"); // Replace x with mobile number
delay(1000);
mySerial.println("Excess Gas Detected. Open Windows");// The SMS text you want to send
delay(200);
mySerial.println((char)26);// ASCII code of CTRL+Z
delay(1000);
}

I'm also uncertain if "AT+CMGF=1" should not be "AT+CMGF=1\r".

Oh my god it workssssss!! Thankss!!
I put the r at the coding "AT+CMGF=1\r"
Then it works.. thankss