 int servoMinAngle = 0;
 int servoMaxAngle = 90;
 int servoStepAngle = (servoMaxAngle-servoMinAngle)/(servoSteps-1);
-int servoMSPerDegree = 5;
+int servoMSPerDegree = 200;
 
-int distanceValues[servoSteps];
+int distanceValues[6];
 
 void setup() {
-  for(int i=0; i<servoSteps; i++){
+  for(int i=0; i<servoSteps; i+=1){
     distanceValues[i] = 0;
   }
   

  
  // convert the time into a distance
  return microsecondsToCentimeters(duration);
}

void printDistance(int distance){
  Serial.print(distance);
  Serial.print(" cm");
  Serial.println();
}

void triggerSensor(){

}

void loop(){
  int i = 0;
  for(servoPos = servoMinAngle; servoPos < servoMaxAngle; servoPos += servoStepAngle){
    readSensorWriteLEDs(servoPos, i);
    i+=1;
  }
  
  for(servoPos = servoMaxAngle; servoPos>servoMinAngle; servoPos-=servoStepAngle)
  {                
    readSensorWriteLEDs(servoPos, i);
    i-=1;
  }
}

void readSensorWriteLEDs(int servoPos, int i){
  servo.write(servoPos);
  
  triggerSensor();
  int distance = readSensor();;
  printDistance(distance);
 
  distanceValues[i] = distance; 
  visualizeCircle();
  
  delay(servoMSPerDegree*servoStepAngle);
}

/**
 * VISUALIZATION TYPE 1
 *
 *    LED-STRIPS:    OBJECT: comming from right
 *                           near at the right
 *    [ ][ ][ ]              nearer at the center
 *    [ ][X][ ]      
 *    [X][X][ ]  =   [o][o][O][O][ ][ ]
 *    [ ][X][ ]      
 *    [ ][ ][ ]      
 * 
 **/
 
void visualizeCircle() {
  float maxDistance = 50;
  float minDistance = 10;
  
  //Calculate the color and the amount of leds for every strip
  for(int i=0; i<NUMBER_STRIPS; i++){
  
    //to get the with 1,2,3 the needed indices we use i*2 and i*2+1
    //0 = 0,1 / 1 = 2,3 / 2 = 4,5   
    int distance = (distanceValues[i*2] + distanceValues[i*2+1]) / 2;
    distance = max(minDistance, distance);
    distance = min(maxDistance, distance);
    
    int heightStrip = NUMBER_LEDS/NUMBER_STRIPS;
    
    //how many of the leds of one strip should be switched on
    int heightToLight = heightStrip * ( (distance - minDistance) / (maxDistance - minDistance) );   
    
    //Calculate the color and the amount of leds for the single strip i
    for(int j=0; j<heightStrip; j++) {
      int centerOfStrip = heightStrip/2;
      int farestLEDFromCenter = heightToLight/2
      
      /**
       *   [ ]  When the j is not over or under the heightStrip half plus/minus
       *   [X]  the height calculated with the distance than it should be switched on
       *   [X]  <- Center
       *   [X]  
       *   [ ]  OVerwise it should be off (hear the most top and bottom one)
       **/
       
      if(j <= centerOfStrip+farestLEDFromCenter && j >= centerOfStrip+farestLEDFromCenter){
        strip.setPixelColor(j+(i*heightStrip), strip.Color(255, 0, 0));
        strip.setPixelColor(j+(i*heightStrip), strip.Color(255, 0, 0));
      }
      else{
        strip.setPixelColor(j+(i*heightStrip), strip.Color(0, 0, 0));
        strip.setPixelColor(j+(i*heightStrip), strip.Color(0, 0, 0));
      } 
    }
  }
  
  strip.show();
} 

/** 
 *
 * DISTANCE SENSOR
 *
 **/

long readSensor(){
  // The same pin is used to read the signal from the PING))): a HIGH
