// define motor according to pin diagram int motor = D3; void setup() { // initialize motor as an output pinMode(motor, OUTPUT); } void loop() { digitalWrite(motor, HIGH); // turn the LED on delay(1000); // wait for a second digitalWrite(motor, LOW); // turn the LED off delay(1000); // wait for a second }