Pulse Sensor add feature

Hello, i would like to attach the pulsesensor code to my menu, this is for a school project, its a gsm that make calls, recive call, send and recive sms and check the pulse of someone person, but i cant add the feature, can anybody help? Here's the code below.

1 - Make call
2 - Answer call
3 - Hang up call
4 - Send message
5 - remake call
6 - check pulse

#include <SoftwareSerial.h>
SoftwareSerial mySerial(7, 8);
char msg;
char call;

void setup()
{
mySerial.begin(9600); // Setting the baud rate of GSM Module
Serial.begin(9600); // Setting the baud rate of Serial Monitor (Arduino)
Serial.println("MENU HELP TECH");
Serial.println("Escolher Opção:");
Serial.println("1 : Fazer chamada");
Serial.println("2 : Atender chamada");
Serial.println("3 : Desligar chamada");
Serial.println("4 : Enviar mensagem");
Serial.println("5 : Retornar chamada");
Serial.println("6 : Verificar Batimentos");
Serial.println();
delay(100);
}

void loop()
{
if (Serial.available()>0)
switch(Serial.read())
{
case '4':
SendMessage();
break;
case '1':
MakeCall();
break;
case '3':
HangupCall();
break;
case '5':
RedialCall();
break;
case '2':
ReceiveCall();
break;
case '6':
pulsacao();
break;
}
if (mySerial.available()>0)
Serial.write(mySerial.read());
}

void SendMessage()
{
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="+351919849969"\r"); // Replace x with mobile number
delay(1000);
mySerial.println("SOS");// The SMS text you want to send
delay(100);
mySerial.println((char)26);// ASCII code of CTRL+Z
delay(1000);
}

void ReceiveMessage()
{
mySerial.println("AT+CNMI=2,2,0,0,0"); // AT Command to recieve a live SMS
delay(1000);
if (mySerial.available()>0)
{
msg=mySerial.read();
Serial.print(msg);
}
}

void MakeCall()
{
mySerial.println("ATD+351919849969;"); // ATDxxxxxxxxxx; -- watch out here for semicolon at the end!!
Serial.println("A chamar "); // print response over serial port
delay(1000);
}

void HangupCall()
{
mySerial.println("ATH");
Serial.println("Desligar chamada");
delay(1000);
}

void ReceiveCall()
{
mySerial.println("ATA");
delay(1000);
{
call=mySerial.read();
Serial.print(call);
}
}

void RedialCall()
{
mySerial.println("ATDL");
Serial.println("A remarcar");
delay(1000);
}
void pulsacao()
{
}

Projeto.ino (2.23 KB)

but i cant add the feature

Why can't you? It is your program.

I would like to get a source working for the sensor in the menu

Do you have a question about the code to do this? If so, post what you have tried and ask specific questions.

doguerino:
I would like to get a source working for the sensor in the menu

I have no idea what that means.

The sensor will work independent of the menu.