 int dataPin = 4;
 
 int motorPin = 5;
+long motor_time = 500; //number of milliseconds the motor vibrates
+
 int redLED = 9; //pwm
 int blueLED = 10; //pwm
 int greenLED = 11; //pwm

String inputString = "";
boolean stringComplete = false;
boolean USB_connected = false;

void setup() {
  //set pins to output so you can control the shift register

    
    if (inputString[inputString.length()-1] == ']') {
      analogWrite(motorPin, 255);
      time = millis();
    }
    
    if (inputString[inputString.length()-1] == ')') {
