When you execute this command, it will trigger BLYNK_WRITE(V10).
Put it in your setup right after connecting to sync at boot.
Just dont put BLYNK_WRITE(V10) in setup as its a non-nested function… ie it cant be inside any other function.
void setup(){
// connect to blynk, then right after put the syncVirtual command.
Blynk.syncVirtual(V10);
}
BLYNK_WRITE(V10) { //slide Humedad
int pinValue = param.asInt();
controlHumedad.onValue = pinValue ;
}