Problem with Notifications

I am trying to get the notification for fire detection using nodemcu by blynk app. But I didn’t get any notification. But I got output in Serial monitor inn Arduino IDE

In this for fire detection, I use flame sensor.
The code is

#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
BlynkTimer timer;
char auth[] = "8d5e2a81f5574f65aee3a239ff83205a"; //Auth code sent via Email
char ssid[] = "Hacked"; //Wifi name
char pass[] = "0123456789";  //Wifi Password
int flag=0;
void notifyOnFire()
  int isButtonPressed = digitalRead(D1);
  if (isButtonPressed==1 && flag==0) {
    Serial.println("Fire in the House");
    Blynk.notify("Alert : Fire in the House");
  else if (isButtonPressed==0)
void setup()
Blynk.begin(auth, ssid, pass);
void loop()

The circuit is

Rather than spamming other topics that are vaguely related to your problem with the same question, you ought to have created your own topic on the subject, and posted your code in the correct format.

I’v moved these posts into their own topic, and deleted the duplicates.
I’ve also re-formatted you code by adding triple backticks at the beginning and end of your code.
Triple bacticks look like this:
Please use them when you post code in future.


“Ku_Mar” Gas value was not declared.

int gas_avalue;```

6 posts were split to a new topic: Fire & Smoke - Problems with Notifications