#include < SoftwareSerial.h >
const int buzzerPin = 9;
const int buttonPin = 2;
const int pulsePin = 8;
const int simRxPin = 10;
const int simTxPin = 11;
const int toggleButtonPin = 3;
const int ledPin = 4;
unsigned long startTime;
bool pulseDetected = false;
bool stopButtonPressed = false;
bool toggleButtonPressed = false;
int alarmEnabled = 1; // Thay đổi thành 0 và 1
bool smsSent = false;
bool callMade = false;
SoftwareSerial simSerial(simRxPin, simTxPin);
void setup() {
pinMode(buzzerPin, OUTPUT);