     result = checkBatteryStatus(argument);
   } else if(command == "distance") {
     result = measureDistance(argument);
+  } else if(command == "look") {
+    result = lookDirection(argument);
   } else if(command == "forward") {
     result = forward(argument);
   } else if(command == "backward") {

bool safetyDriveMode = true;
bool debugMode = false;

String input = "";
  
void setup()
{
  Serial.begin(9600);
  Serial.print("Ready\n");
}

void loop()

  return result;
}

String lookDirection(int argument) {
  String result;
  
  Serial.print("arg: " +String(argument)+ "\n");
  
  if (argument >= 0 && argument <= 180) {
  
    digitalWrite(ledPin, HIGH);
   
    if (servo.attached() == false) {
      servo.attach(9);
    }

    int waitTimeInMs;
    
    if (servo.read() > argument) {
      waitTimeInMs = servo.read() - argument;
    } else {
      waitTimeInMs = servo.read() + argument;
    }

    servo.write(argument);
    
    Serial.print(waitTimeInMs);
    
    delay(waitTimeInMs * 3);
    
    servo.detach();
    
    digitalWrite(ledPin, LOW);
    
    result = "ok";
  } else {
    result = "failed";
  }
  
  return result;
}

String forward(int speedInPercentage)
{
  if (speedInPercentage > 0)
