int lr=0;
void setup()
{
Serial.begin(9600);
pinMode(8,OUTPUT);
pinMode(9,OUTPUT);
pinMode(10,OUTPUT);
}
void loop()
{
lr=analogRead(0);
if(lr>50){
digitalWrite(8,HIGH);
}else{
digitalWrite(8,LOW);
}
if(lr>100){
digitalWrite(9,HIGH);
}else{
digitalWrite(9,LOW);
}
if(lr>200){
digitalWrite(10,HIGH);
}else{
digitalWrite(10,LOW);
}
Serial.println(lr);
delay(100);
}