   RIGHT
 };
 direction servoRangeDirection = NONE;
+bool servoTriggerActive = true;
+
+direction servoLastScan = NONE;
+int servoCountHelper = 5;
 
 // IR obstacle detection
 int obstaclePin = A1;

    // attach servo pin and set to initial direction
    ServoMotor.attach(servoPin);
    ServoMotor.write(servoCenter);
    ServoMotor.detach();
}

void GetRange(int servoPos, bool rotating)

Servo ServoMotor;
const uint8_t servoPin = 10;

const uint8_t servoLimitLeft = 170;
const uint8_t servoTiltLeft = 130;
const uint8_t servoLimitRight = 10;
const uint8_t servoTiltRight = 50;
const uint8_t servoCenter = 90;

enum direction {
