'class BlynkWifi' has no member named 'notify'

#define BLYNK_TEMPLATE_ID "TMPL4ksKN1R7Q"

#define BLYNK_TEMPLATE_NAME "IOT based fire alarm system"

#define BLYNK_AUTH_TOKEN "_0q37AEt8_rGBj8lp3aA5vEOf0r44DtI"

#define BLYNK_PRINT Serial

#include <ESP8266WiFi.h>

#include <BlynkSimpleEsp8266.h>

char auth[] = "_0q37AEt8_rGBj8lp3aA5vEOf0r44DtI";

char ssid[] = "odiny";

char pass[] = "lewandowski1";

BlynkTimer timer;

int pinValue = 0;

#define LED1 D1

#define LED2 D2

#define Buzzer D3

#define Sensor D0

void setup() {

  Serial.begin(9600);

  pinMode(LED1, OUTPUT);

  pinMode(LED2, OUTPUT);

  pinMode(Buzzer, OUTPUT);

  pinMode(Sensor, INPUT);

  Blynk.begin(auth, ssid, pass);

  timer.setInterval(1000L, notifiaction);

}

BLYNK_WRITE(V0) {

  pinValue = param.asInt();

}

void notifiaction() {

  int sensor = digitalRead(Sensor);

  if (pinValue == 1) {

    Serial.println("System is ON");

    if (sensor == 1) {

      digitalWrite(LED2, HIGH);

      digitalWrite(LED1, LOW);

      digitalWrite(Buzzer, LOW);

    } else if (sensor == 0) {

      Blynk.notify("WARNING! A fire was detected");

      digitalWrite(LED2, LOW);

      digitalWrite(LED1, HIGH);

      digitalWrite(Buzzer, HIGH);

    }

  } else if (pinValue == 0) {

    Serial.println("System is OFF");

  }

}

void loop() {

  Blynk.run();

  timer.run();

}

@Fernandez Please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```

Copy and paste these if you can’t find the correct symbol on your keyboard.

Pete.

Blynk,notify is a Legacy function that is not supported in Blynk IoT. It is replaced with Blynk.logEvent.

However, your current sketch will quickly exceed the 100 event per day limit unless you add-in some flag variable code. You should read this…

Pete.