Need help in coding-GSM Module

could help me sir with my final project :confused: :confused: :sob: :sob: just in the coding sir, I want the "updated value"be sent to my phone when a specific message was sent to the gsm module. My project is "parking lot management system" where each parking space having sensors each and being monitored by sms through gsm module(sim800l).

this is result in my serial monitor.

the code of my project

const int NumberOfSensors = 1;
const int PassengerCapacity = 12;

int sensor[NumberOfSensors] = {4};
int TotalPassengers;
int NumOfOccupied;

void Print(void){
  Serial.print(TotalPassengers);Serial.print("\t");
  Serial.print(NumOfOccupied);Serial.print("\t");
  Serial.print(PassengerCapacity-NumOfOccupied);Serial.println();
}

void setup(){
  Serial.begin(9600); while(!Serial);
  for(int p=0; p<NumberOfSensors; p++){
    pinMode(sensor[p],INPUT);
  }
  TotalPassengers = 0;
  NumOfOccupied =0;
  Serial.println("\nTotal Occupied Vacant");
  Print();
}
void loop(){

  int OldVal=NumOfOccupied;
  NumOfOccupied = 0;

  for(int p=0; p<NumberOfSensors; p++){
    if (digitalRead(sensor[p]) == LOW){
      NumOfOccupied++;
      delay(1000);
    }
  }

  if(NumOfOccupied>OldVal){
    TotalPassengers += NumOfOccupied-OldVal;
  }
  if(NumOfOccupied != OldVal){
    Print();
  }
  
}

thanks in advance.

where is the GSM stuff in your code?

Do you expect someone to write that for you and do your final project so that you graduate and shows off skills you don't have....

won't happen here...

So find which GSM you want to use, study examples, write some code and if you have some bugs then come back here with qualified questions.