         OldTime = millis();
         old_degrees = new_degrees;
     }
+
 }
 

int aQ1 = 11;
int aQ2 = 13;
int aQ3 = 8;

const int UpdateTime = 200; // (number of milliseconds between updating servo position -- if too low you will burn motor out)
unsigned long OldTime = 0;

}

void loop(){
    // Read value to apply from serial
    // Read until newline
    delay(10);  //delay to allow buffer to fill
    while (Serial.available()) {
        if (Serial.available() >0) {
            char c = Serial.read();  //gets one byte from serial buffer
            if (c == '\n') {
                break;
            }
            readString += c; //makes the string readString
        }
    }
    // Parse the value read from serial to int
    finalReading = readString.toInt();

    // Reset the string read for next iteration in the loop
    readString = "";

    // write all LEDs low and stim pin low
    for(int j = 0; j < NUM_LED; j++){
