Complication erroe : 'class blynkWifi' has no member named 'notify'

if (sensorState == 1 && lastState == 0) {
Serial.println(“needs water, send notification”);
Blynk.notify(“Water your plants”);
lastState = 1;
//send notification

can you please explain how to slove this

Blynk.notify(); is a legacy function, no longer supported. You need to use Automations for Alerts and Events -

You need to post your entire code, properly formatted in line with the instructions at the top of the forum

Use three backticks ``` before and after your code