Coin Vibration Motors

#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

char auth[] = "[Auth Token]";       // You should get Auth Token in the Blynk App.
char ssid[] = "Redmi";                       // Your WiFi credentials.
char pass[] = "1234567890#";

  int pinValue = param.asInt(); // assigning incoming value from pin V8 to a variable
Blynk.virtualWrite(V8, pinValue);

void setup() {
 Blynk.begin(auth, ssid, pass, "", 80);

void loop() {;

This is the code I’m using for running my coin vibration motor but for some reason, the motor is not powering up, It only powers up when I reset the board then immediately deactivates again. Is there any mistake in the code, I’ve tried changing the motor but still no use

@Alexabe911 please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:


What sort of values are you sending to pin D7?