Blynk Notification Problem

Hi im new here. Im now doing a project to monitor water consumption using blynk app and water flow sensor. i have set three different water flow level and each time it reached each of the level, push notification will be received. but my problem is that there is no notification.

This is my code,

#include <Ethernet.h>
//#include <BlynkSimpleEthernet.h>



//#include <SimpleTimer.h>

#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
//#include <BlynkTimer.h>
#include <SPI.h>

int X;
int Y;
float TIME = 0;
float FREQUENCY = 0;
float WATER = 0;
float TOTAL = 0;
float LS = 0;
int Flowsensor = D5;
char auth[] = "TknIFLO-95kTgcPIimu4unt2-M_ukTDM"; 

 char ssid[] = "Penguin";
 char pass[] = "****";
 
 
WidgetLCD lcd(V0); 
WidgetLED LED1Blynk(V1);

BlynkTimer timer;



void setup()
{
  Serial.begin(9600);
  pinMode(Flowsensor,INPUT_PULLUP);
  Blynk.begin(auth, ssid, pass);
Serial.println("System Start!");

  timer.setInterval (1000L, sensorDataSend);  //set timer - function sensordata should run every 1000ms which is 1s
}



void sensorDataSend()
{
X = pulseIn(Flowsensor, HIGH); //water flow
Y = pulseIn(Flowsensor, LOW); //no flow
TIME = X + Y;
FREQUENCY = 1000000/TIME;
WATER = FREQUENCY/7.5;
LS = WATER/60; 
if(FREQUENCY >= 0)
{
if(isinf(FREQUENCY))
{

Serial.println(TIME);
Blynk.virtualWrite(V2,TOTAL,  "L/M" );

 lcd.clear(); 
 lcd.print(0,0," No Water Flow"); 
 
 LED1Blynk.off(); 
 Blynk.virtualWrite(V3,TIME/100, "L/M");
}
else
{

TOTAL = TOTAL + LS;

Blynk.virtualWrite(V3,TIME/100, "L/M");
Serial.println(FREQUENCY);
 lcd.clear(); 
 lcd.print(0,0," Water Flowing!"); 

waterlevel();
 
 LED1Blynk.on(); 
 Serial.println(WATER);
 Serial.println(TOTAL);
 Blynk.virtualWrite(V2,TOTAL,  "L/M" );
}}
}


void loop()
{
  Blynk.run();
  timer.run();
  }
  


 void waterlevel() 
 {
  

 if (TOTAL >= 2 && TOTAL < 4)
 
      { lcd.clear(); 
        lcd.print(0,0," Water Flowing!"); 
        lcd.print(0,1,"Exceed Level 1!");
         Serial.println("Exceed Level 1!");
        Blynk.notify("Water exceed level1!");}

 
 else if (TOTAL >= 4 && TOTAL < 6)

           
      { lcd.clear(); 
        lcd.print(0,0," Water Flowing!"); 
        lcd.print(0,1,"Exceed Level 2!");
        Blynk.notify("Water exceed level 2!");}

 else if (TOTAL >= 6)

{ lcd.clear(); 
 lcd.print(0,0," Water Flowing!"); 
  lcd.print(0,1,"Exceed Level 3!");
  Blynk.notify("Water exceed level 3!");}
  
 }
 

i have set the priority to high and also turn on the notification for blynk on my phone. im using ios 13.6.
There is output on serial monitor but no notification.

and ive been looking in utube for tutorial and i notice that

Capture

the notify is not highlighted orange. is it have someting to do with the issue? im sorry if this is silly because im new to this. anyone can help me? thank u

Hi,

Do you have the Blynk Notification widget added to your project?

Also you are trying to send notifications every 1 second. Notifications are limited to each device can only send 1 notification every 5 seconds. You will be swamping the server and it may be blocking your notifications.

I would recommend you create Serial.print() statements for testing and // out your Blynk.notify() lines to test that the rest of the code is OK.

billd

When you created this topic you were asked to provide the following information:

  1. Add details :
    • Hardware model + communication type. For example: Arduino UNO with Ethernet Shield
    • Smartphone OS (iOS or Android) + version
    • Blynk server or local server
    • Blynk Library version

My guess is that if you do this, it will point immediately to the problem.

Pete.

it could be because of Windows notification settings