DC Motor Control Issue

BLYNK _WRITE is a function called every time device gets an update of Virtual Pin value from the server or app.
You can use blynk timer to call your function, just create a void function like this

Void readsensor()

and in the void setup add this line

timer.setInterval(5000L, readsensor);

and in the void loop add

timer.run

More details here