 
 const uint8_t seroRotationDurationPerAngle = 2;
 
-
 enum direction {
     left,
     center,

        delay(seroRotationDurationPerAngle * (abs(nextAngle - actualServoPos)));
    }

    if(rangeFront < 5) { rangeFront = maxDistance; }
    if(rangeFront > maxDistance) { rangeFront = maxDistance; }
    Serial.print("Ultrasonic");
    Serial.print("|");

        if(data == "fast")
        {
            servoRotationAngel = servoRotationAngelFast;
            return;
        }
        
        if(data == "medium")
        {
            servoRotationAngel = servoRotationAngelMedium;
            return;
        }

        if(data == "detail")
        {
            servoRotationAngel = servoRotationAngelDetailed;
            return;
        }
    }
