I am trying to send a light value from analog sensor to be displayed with my iOS notification. I try this code but get errors. I cant get it to work, only the normal notification without the lightVal.
I would greatly appreciate the help.
Thank you
if (lightVal > 600 ) {
led1.setColor(BLYNK_GREEN);
led1.on();
if ( lightVal > 300 && lightflag == true ) { /// Bright lights? Say so
lightflag = false;
Blynk.notify("Current Lumens" + lightVal);
terminal.println("Lights are on");
Serial.println("Lights on");
Serial.println("-------------");
Serial.println("-------------");
}
}
else {
lightflag = true;
}