 
         if(data == "fast")
         {
-            servoRotationAngel = servoRotationAngelFast;
+            servoRotationAngle = servoRotationAngleFast;
             return;
         }
 
         if(data == "medium")
         {
-            servoRotationAngel = servoRotationAngelMedium;
+            servoRotationAngle = servoRotationAngleMedium;
             return;
         }
 
         if(data == "detail")
         {
-            servoRotationAngel = servoRotationAngelDetailed;
+            servoRotationAngle = servoRotationAngleDetailed;
             return;
         }
     }

    Serial.print("|");
    Serial.print(pos);
    Serial.print("|");
    Serial.println(distance);
}



    // attach servo pin and set to initial direction
    ServoMotor.attach(servoPin, 450, 2400); // 400, 2600 to fix rotation issues
    ServoMotor.write(servoPos);
    servoRotationAngle = servoRotationAngleMedium;
}


