delay()is a blocking function that completely stops your MCU for a specified time before resuming the loop execution.
sensorValueto Blynk app and write such code:
void loop()will be executed many times per second.
Blynk.virtualWrite(V1, sensorValue)in the loop, you send gazillion messages to Blynk Cloud from your hardware. When it happens, Blynk automatically disconnects your device for spamming. Sorry.
Blynk.run()is a main Blynk routine responsible for keeping connection alive, sending data, receiving data, etc. When you use a
delay(), you most likely are breaking a connection to Blynk Cloud or blocking some functions of Blynk library.
sensorValuewill never get to the Cloud.
void loop()as clean as possible and move all the other routines (e.g. sensor reading) into timers and separate functions.
void loop()should look like that:
void setup()you need to declare that your function
sensorDataSend()should run every 1000 milliseconds, (which is 1 second).
void loop()you will never block a connection to Blynk Cloud and will never spam it.