Pir sensor with notification alert

Hello, how can I fix continuous notification alert in blynk? Please help me I using cloud server. Thanks
Here’s my code

#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <SimpleTimer.h>


/*-----Your WiFi credentials-----*
  //char ssid[] = "ssssss";
  //char pass[] = "******";*/
char ssid[] = "222222";
char pass[] = *******";

/*-----Pirsensor setup-----*
 * Pin where pir sensor is connected
 * on nodemcu best pins to use are:
 * D5, D6, D7*/ 

#define ledPin D4 
#define pirPin_1 D5
//#define pirPin_2 D6
//#define pirPin_3 D7

int Alarm_arm_disarm;

SimpleTimer timer;


 Alarm_arm_disarm = param.asInt();

void PIRval(){
int val_1 = digitalRead(pirPin_1);
//int val_2 = digitalRead(pirPin_2);
//int val_3 = digitalRead(pirPin_3);
    if (val_1 == HIGH){ //((val_1 == HIGH) || (val_2 == HIGH) || (val_3 == HIGH))  {
      digitalWrite(ledPin, LOW);  
      else {
        digitalWrite(ledPin, HIGH); 

  void pir(void){
   if (Alarm_arm_disarm == 1) {
      if (digitalRead(pirPin_1) == HIGH)
         Blynk.notify("ALARM On Pirsensor
void setup()
  /*-----Serial Communications-----*/
  //Debug console

  /*-----Blynk Server settings-----*
    //Blynk.begin(auth, ssid, pass);
    // You can also specify server:
    //Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 80);*/
  Blynk.begin(auth, ssid, pass, );

  pinMode(ledPin, OUTPUT);
  pinMode(pirPin_1, INPUT_PULLUP);

  timer.setInterval(1200L, PIRval);
   timer.setInterval(1000L, pir);
void loop()

If you search the forum you will see that this question has been asked many times before, and that the answer is to use a flag.

You will set the flag when the alert criteria has been set and the notification sent.
You will then check if the flag is set, and if it is then you won’t send a notification again.
Once your alert status has ceased then you will clear the flag, so that future alert statuses will generate notifications.