In function 'void loop()': and error: 'class BlynkWifi' has no member named 'notify' 74 Blynk.notify("Water your plants");

Please who can help me to debug the errors in below codes, please

// IOT Smart Plant Monitoring System
#define BLYNK_TEMPLATE_ID "TMPL2lgJhEGhy"
#define BLYNK_TEMPLATE_NAME "Quickstart Template"
#define BLYNK_PRINT Serial   
#include <SPI.h>
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <SimpleTimer.h>
#include <DHT.h>
#define BLYNK_PRINT Serial
#include <OneWire.h>
#include <DallasTemperature.h>
#define ONE_WIRE_BUS V2
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
char auth[] ="Redacted by moderator";               //Authentication code sent by Blynk
char ssid[] = "Redacted by moderator";                       //WiFi SSID
char pass[] = "Redacted by moderator";                       //WiFi Password
#define sensorPin V3 
int sensorState = 0;
int lastState = 0;
#define DHTPIN 2    
#define DHTTYPE DHT11     
DHT dht(DHTPIN, DHTTYPE);
SimpleTimer timer;
void sendSensor()
{
  float h = dht.readHumidity();
  float t = dht.readTemperature();

  if (isnan(h) || isnan(t)) {
    Serial.println("Failed to read from DHT sensor!");
    return;
  }
 
  Blynk.virtualWrite(V5, h);  //V5 is for Humidity
  Blynk.virtualWrite(V6, t);  //V6 is for Temperature
}
void setup()
{
  Serial.begin(9600);
  Blynk.begin(auth, ssid, pass);
   pinMode(sensorPin, INPUT);
  dht.begin();

  timer.setInterval(1000L, sendSensor);
  Serial.begin(115200);
  Blynk.begin(auth, ssid, pass);
   sensors.begin();
}
int sensor=0;
void sendTemps()
{
sensor=analogRead(A0);
sensors.requestTemperatures();
float temp = sensors.getTempCByIndex(0); 
Serial.println(temp);
Serial.println(sensor);
Blynk.virtualWrite(V1, temp);
Blynk.virtualWrite(V2,sensor);
delay(1000);
}
void loop()
{
  Blynk.run(); 
  timer.run(); 
  sendTemps();
  sensorState = digitalRead(sensorPin);
Serial.println(sensorState);

if (sensorState == 1 && lastState == 0) {
  Serial.println("needs water, send notification");
  Blynk.notify("Water your plants");
  lastState = 1;
  delay(1000);
//send notification
    
  } 
  else if (sensorState == 1 && lastState == 1) {
    //do nothing, has not been watered yet
  Serial.println("has not been watered yet");
  delay(1000);
  }
  else {
    //st
    Serial.println("does not need water");
    lastState = 0;
    delay(1000);
  }
  
  delay(100);
}

error

C:\Users\L. J. Muhammad\Documents\Arduino\libraries\SmartPlantMonitoring\SmartPlantMonitoring.ino: In function 'void loop()':
C:\Users\L. J. Muhammad\Documents\Arduino\libraries\SmartPlantMonitoring\SmartPlantMonitoring.ino:74:9: error: 'class BlynkWifi' has no member named 'notify'
74 | Blynk.notify("Water your plants");
| ^~~~~~

exit status 1

Compilation error: 'class BlynkWifi' has no member named 'notify'

Don’t share your IDs….

======

Do you have the API documentation for your library ? Does it list notify?

======

Why do you have those begin twice?

Your topic has been moved to a more suitable category. Please read the sticky topics in Uncategorized - Arduino Forum for tghe "why".

I don't use Blynk, but a quick search turned this up:

Blynk.notify has been replaced with Blynk.logEvent

ok thanks

Also if you read the Blynk documentation it states do not use delay(). Your delays total more than 3 seconds! This will stop blynk from working properly