Problem with the command Blynk.notify("")

Hello everyone,
I am Angad Singh,

I started using ESP32 2-3 weeks ago, so one day I was building a intruder alert thingy, which would made out of PIR sensor and then it would send a notification on Blynk. Ok, so here comes the main problem that when I was trying to compile the code it said this:

IR_Sensor_Coed:31:1: error: expected unqualified-id before 'else'
 else {
 ^
Multiple libraries were found for "WiFi.h"
 Used: C:\Users\Angad\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\libraries\WiFi
 Not used: C:\Program Files (x86)\Arduino\libraries\WiFi
Using library WiFi at version 1.0 in folder: C:\Users\Angad\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\libraries\WiFi 
Using library Blynk at version 1.0.0 in folder: C:\Users\Angad\OneDrive\Documents\Arduino\libraries\Blynk 
exit status 1
expected unqualified-id before 'else'

Well after this I searched a lot, and the result was just nothing. I found nothing about this on the whole internet so I thought why don't I put this issue in the Arduino Forum and someone might help me and others who are going through this problem.
The conclusion here is:
Please help me with it Please

By the way here is my code:

#define BLYNK_PRINT Serial
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
char auth[] = "*****************"; //Your Authentication key over here
char ssid[] = "*****************"; //Your home WiFi's SSID
char pass[] = "*****************"; //Your home WiFi's Password
int Pirsensor = 4;
void setup() {
  Serial.begin(115200);
  delay(10);
  Serial.print("Connecting to ");
  Serial.println(ssid);
  WiFi.begin(ssid, pass);
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }
  Serial.println("WiFi connected");
  pinMode(Pirsensor, INPUT);
  Blynk.begin(auth, ssid, pass);
}
void loop() {
  Blynk.run();
  int sensorstate = digitalRead(Pirsensor);
  if (sensorstate == 1) {
    Serial.println("Intruder is detected ");
  }
  Blynk.notify("Intruder alert ");
}
else {
  Serial.println("no intruder");
}

And here is the link to get ESP32's library https://dl.espressif.com/dl/package_esp32_index.json

Please help me with it..

Regards,
Angad Singh

That else is after the end of your loop function.

Ok so it goes like this:

void loop() {
  Blynk.run();
  int sensorstate = digitalRead(Pirsensor);
  if (sensorstate == 1) {
    Serial.println("Intruder is detected ");
  }
  Blynk.notify("Intruder alert ");
}
else {
  Serial.println("no intruder");
}