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


const uint8_t seroRotationDurationPerAngle = 2;


enum direction {
    left,
    center,

#include "Servo.h"
#include "NewPing.h"


// Ultrasonic Sensor
const uint16_t minDistance = 5;
const uint16_t maxDistance = 200;
uint8_t averageScanAmount = 1;


// Ultrasonic Sensor #1
const uint8_t trigPin = 9;
