How to stop continuous message in void loop();

Continuously getting sms for the below mentioned program need one msg for one command plz guide ms
Thank You

#include <SoftwareSerial.h>
SoftwareSerial SIM900(9, 10); // gsm module connected here
String textForSMS;
bool data;
bool data1;
bool data2;
bool data3;
bool data4;

int jockey = 2; // Jockey is connected with the digital pin 2 of the Arduino
int hydrant = 3;// Hydrant is connected with the digital pin 3 of the Arduino
int booster = 4;// Booster is connected with the digital pin 4 of the Arduino
int deisel = 5; // Deisel is connected with the digital pin 6 of the Arduino
int sprinkler = 6; //Sprinkler is connected with the digital pin 7 of the Arduino

// cell numbers to which you want to send the security alert message
String f1001 = “+919952434257”;
String f1002 = “+917339363675”;
String f1003 = “+919003911200”;
String f1004 = “+918939812784”;

void setup() {

//randomSeed(analogRead(0));
Serial.begin(9600);
SIM900.begin(9600); // original 19200. while enter 9600 for sim900A
Serial.println(" Manual Mode Activated in:!");
pinMode(jockey, OUTPUT);
pinMode(hydrant, OUTPUT);
pinMode(booster, OUTPUT);
pinMode(deisel, OUTPUT);
pinMode(sprinkler, OUTPUT);

delay(5000); // wait for 5 seconds
}
void loop()
{
data = digitalRead(jockey);
//Serial.println(data);

if ( data == HIGH ) //
{
textForSMS = “\nJockey Alarm”;
//sendSMS(textForSMS);
sendsms(textForSMS, f1001); // you can use a variable of the type String
Serial.println(textForSMS);
Serial.println(“message sent.”);
delay(10);

sendsms(“Jockey Alarm!!!”, f1002); // you can also write any message that you want to send.
Serial.println(textForSMS);
Serial.println(“message sent.”);
delay(10);

sendsms(“Jockey Alarm!!!”, f1003); // you can also write any message that you want to send.
Serial.println(textForSMS);
Serial.println(“message sent.”);
delay(10);

sendsms(“Jockey Alarm!!!”, f1004); // you can also write any message that you want to send.
Serial.println(textForSMS);
Serial.println(“message sent.”);
delay(10);
}
else
{
textForSMS = “\nJockey Acknowledgement received”;
//sendSMS(textForSMS);
sendsms(textForSMS, f1001); // you can use a variable of the type String
Serial.println(textForSMS);
Serial.println(“message sent.”);
delay(10);

sendsms(“Jockey Acknowledgement received!!!”, f1002); // you can also write any message that you want to send.
Serial.println(textForSMS);
Serial.println(“message sent.”);
delay(10);

sendsms(“Jockey Acknowledgement received!!!”, f1003); // you can also write any message that you want to send.
Serial.println(textForSMS);
Serial.println(“message sent.”);
delay(10);

sendsms(“Jockey Acknowledgement received!!!”, f1004); // you can also write any message that you want to send.
Serial.println(textForSMS);
Serial.println(“message sent.”);
delay(10);
}

data1 = digitalRead(hydrant);
//Serial.println(data1);

if ( data1 == HIGH) //
{
textForSMS = “\nHydrant Alarm”;
//sendSMS(textForSMS);
sendsms(textForSMS, f1001); // you can use a variable of the type String
Serial.println(textForSMS);
Serial.println(“message sent.”);
delay(10);

sendsms(“Hydrant Alarm!!!”, f1002); // you can also write any message that you want to send.
Serial.println(textForSMS);
Serial.println(“message sent.”);
delay(10);

sendsms(“Hydrant Alarm!!!”, f1003); // you can also write any message that you want to send.
Serial.println(textForSMS);
Serial.println(“message sent.”);
delay(10);

sendsms(“Hydrant Alarm!!!”, f1004); // you can also write any message that you want to send.
Serial.println(textForSMS);
Serial.println(“message sent.”);
delay(10);
}

data2 = digitalRead(booster);
//Serial.println(data2);

if ( data2 == HIGH) //
{
textForSMS = “\nBooster Alarm”;
//sendSMS(textForSMS);
sendsms(textForSMS, f1001); // you can use a variable of the type String
Serial.println(textForSMS);
Serial.println(“message sent.”);
delay(10);

sendsms(“Booster Alarm!!!”, f1002); // you can also write any message that you want to send.
Serial.println(textForSMS);
Serial.println(“message sent.”);
delay(10);

sendsms(“Booster Alarm!!!”, f1003); // you can also write any message that you want to send.
Serial.println(textForSMS);
Serial.println(“message sent.”);
delay(10);

sendsms(“Booster Alarm!!!”, f1004); // you can also write any message that you want to send.
Serial.println(textForSMS);
Serial.println(“message sent.”);
delay(10);
}
data3 = digitalRead(deisel);
//Serial.println(data3);

if ( data3 == HIGH) //
{
textForSMS = “\nDeisel Alarm”;
//sendSMS(textForSMS);
sendsms(textForSMS, f1001); // you can use a variable of the type String
Serial.println(textForSMS);
Serial.println(“message sent.”);
delay(10);

sendsms(“Deisel Alarm!!!”, f1002); // you can also write any message that you want to send.
Serial.println(textForSMS);
Serial.println(“message sent.”);
delay(10);

sendsms(“Deisel Alarm!!!”, f1003); // you can also write any message that you want to send.
Serial.println(textForSMS);
Serial.println(“message sent.”);
delay(10);

sendsms(“Deisel Alarm!!!”, f1004); // you can also write any message that you want to send.
Serial.println(textForSMS);
Serial.println(“message sent.”);
delay(10);
}
data4 = digitalRead(sprinkler);
//Serial.println(data4);

if ( data4 == HIGH) //
{
textForSMS = “\nSprinkler Alarm”;
//sendSMS(textForSMS);
sendsms(textForSMS, f1001); // you can use a variable of the type String
Serial.println(textForSMS);
Serial.println(“message sent.”);
delay(10);

sendsms(“Sprinkler Alarm!!!”, f1002); // you can also write any message that you want to send.
Serial.println(textForSMS);
Serial.println(“message sent.”);
delay(10);

sendsms(“Sprinkler Alarm!!!”, f1003); // you can also write any message that you want to send.
Serial.println(textForSMS);
Serial.println(“message sent.”);
delay(10);

sendsms(“Sprinkler Alarm!!!”, f1004); // you can also write any message that you want to send.
Serial.println(textForSMS);
Serial.println(“message sent.”);
delay(10);
}
}
void sendsms(String message, String number)
{
String mnumber = “AT + CMGS = “”+number+”"";
SIM900.print(“AT+CMGF=1\r”);
delay(1000);
SIM900.println(mnumber); // recipient’s mobile number, in international format
delay(1000);
SIM900.println(message); // message to send
delay(1000);
SIM900.println((char)26); // End AT command with a ^Z, ASCII code 26
delay(1000);
SIM900.println();
delay(100); // give module time to send SMS
// SIM900power();
}

Please do yourself and us a favour by reading read this before posting a programming question and following the advice given

How about reading the state change example in the IDE, and applying the knowledge gained to this application?