int slide_Value ;


void setup() {
  
  Serial.begin(9600);
  //pinMode(A1, analogRead);

  pinMode(2, OUTPUT);
  pinMode(3, OUTPUT);
  pinMode(4, OUTPUT);
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);
  pinMode(7, OUTPUT);
  pinMode(8, OUTPUT);
  pinMode(9, OUTPUT);
  pinMode(10, OUTPUT);
  pinMode(11, OUTPUT);

}

void loop() {

  slide_Value = (analogRead(A1));
  delay(50);
  Serial.println(slide_Value);
  

  if (slide_Value>=0) {
    digitalWrite(2, HIGH);

  }else
    digitalWrite(2, LOW);



  if (slide_Value>122) {
    digitalWrite(3, HIGH);

  }else
    digitalWrite(3, LOW);



  if (slide_Value>=244) {
    digitalWrite(4, HIGH);

  }else
    digitalWrite(4, LOW);



  if (slide_Value>=366) {
    digitalWrite(5,HIGH);

  }else
    digitalWrite(5, LOW);



  if (slide_Value>=488) {
    digitalWrite(6, HIGH);

  }else
    digitalWrite(6, LOW);



  if (slide_Value>=610) {
    digitalWrite(7, HIGH);

  }else  digitalWrite(7, LOW);



  if (slide_Value>=732) {
    digitalWrite(8,HIGH);

  }else  digitalWrite(8, LOW);



  if (slide_Value>=854) {
    digitalWrite(9, HIGH);

  }else
    digitalWrite(9, LOW);



  if (slide_Value>=970) {
    digitalWrite(10,HIGH);

  }else
    digitalWrite(10, LOW);



  if (slide_Value>=1023) {
    digitalWrite(11, HIGH);

  }else  
    digitalWrite(11, LOW);




  
}