You’re getting this compilation error because Blynk.notify()
is a Legacy command which is no longer supported in Blynk IoT.
Blynk IoT handles notifications as part of the Blynk.logEvent
command. More information in the documentation and here…
In addition, your code has quite a few other problems…
-
you should be using BlynkTimer instead of SimpleTimer.
-
you have two
Serial.begin()
commands in your void setup. -
your void loop is very cluttered, and you’re using blocking
delay()
commands to regulate the frequency of your sensor readings. Instead, your void loop should just have theBlynk.run() and timer.run()
commands in it, and the other code should be in a separate function which is called using a BlynkTimer. Read this for more information…
Pete.