Turn off light with Blynk after PIR detects motion

Hey there,

first of all you must keep your void loop clean, the ideal blynk void loop should look like this

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

Check this out

second,

Use this in a separate void function and call it using a blynk timer.
For more details, read this topic

1 Like