Getting error exit stauts 1

While compiling an error occurred
That error is exit status 1
Error compiling to board arduino nano

again.txt (3.06 KB)

//LPG-2-29/3/18
#include<LiquidCrystal.h>
//#include <Stepper.h>
#define buzz 11
#define sen1 12
#define temps 4
LiquidCrystal lcd(A5, A4, A3, A2, A1, A0);
//const int stepsPerRevolution = 200;  // change this to fit the number of steps per revolution
// for your motor
int value=1;
// initialize the stepper library on pins 8 through 11:
//Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11);
float tempC;
int reading;
int tempPin = 0;



void send_msgno1(const char* msg1)
{
  Serial.print("AT\r");
   //Serial.print("\r");//enter = \r, nextline = \n, tab = \t
  delay(1000);                  
  Serial.print("AT+CMGF=1\r");//message forward mode 1= text, 0=graphics    
  delay(1000);
  Serial.print("AT+CMGS=\"+919413668221\"\r");    //Number to which you want to send the sms
  delay(1000);
 // Serial.print("LPG Gas Sensor Start\r");   //The text of the message to be sent
  Serial.print(msg1);
  delay(1000);
  Serial.write(0x1A);//ctrl+z
  delay(1000);
}


void send_msgno2(const char* msg2)
{
  Serial.print("AT\r");
   //Serial.print("\r");//enter = \r, nextline = \n, tab = \t
  delay(1000);                  
  Serial.print("AT+CMGF=1\r");//message forward mode 1= text, 0=graphics    
  delay(1000);
  Serial.print("AT+CMGS=\"+917976544966\"\r");    //Number to which you want to send the sms
  delay(1000);
 // Serial.print("LPG Gas Sensor Start\r");   //The text of the message to be sent
  Serial.print(msg2);
  
  delay(1000);
  Serial.write(0x1A);//ctrl+z
  delay(1000);
}

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  pinMode(buzz,OUTPUT);
  pinMode(sen1,INPUT_PULLUP);
  pinMode(temps,INPUT_PULLUP);
   // set the speed at 60 rpm:
 // myStepper.setSpeed(60);
  analogReference(INTERNAL);
  
  lcd.begin(16,2);
  lcd.setCursor(0,0);
  lcd.print("Fire avoiding system ");
  lcd.setCursor(0,1);
  lcd.print("with alarm");
  delay(4000);
  lcd.setCursor(0,0);
  lcd.print("DETECTOR OBSERVING");
  send_msgno1("LPG Gas Sensor Start\r");//Sending message to +919413668221
  send_msgno2("LPG Gas Sensor Start\r");//Sending message to +917976544966
  delay(1000); 
  
  
}

void loop() {
  // put your main code here, to run repeatedly:
   reading = analogRead(tempPin);
tempC = reading / 9.31;
lcd.setCursor(0,0);
lcd.println(tempC);
delay(1000);
  value=digitalRead(sen1);
  if(value==LOW)
  {
    digitalWrite(buzz,HIGH);
    lcd.setCursor(1,1);
    lcd.print("GAS LEAKAGE");
    send_msgno1("GAS LEAKAGE PLEASE COME FAST\r");//Sending message to +919413668221
    send_msgno2("GAS LEAKAGE PLEASE COME FAST\r");//Sending message to +917976544966
    delay(3000);
  
  }
  else
  {
    lcd.setCursor(0,1);
    lcd.print("NORMAL SIGNAL  ");
    digitalWrite(buzz,LOW);
    }
   
        // step one revolution  in one direction:
 // Serial.println("clockwise");
  //myStepper.step(stepsPerRevolution);
  //delay(500);

  // step one revolution in the other direction:
//  Serial.println("counterclockwise");
 // myStepper.step(-stepsPerRevolution);
 // delay(500);
  }

The "exit status 1" message mean "there was an error". To see what the error was, look in the text box below your sketch. It contains all of the messages.

The sketch in Reply #1 compiles without error for me. Perhaps you have the Tools->Board or Tools->Port setting wrong.