코드

int swval = 0;
int rigvalue = 0;
const int button = 10;
int old_value;
int count = 0;
void setup(){
  Serial.begin(9600);
  pinMode(13,OUTPUT);
  pinMode(12,OUTPUT);
  pinMode(11,OUTPUT);
  pinMode(13,INPUT);
  pinMode(button,INPUT);
}
void loop()
{
 swval = digitalRead(10);
  int digitalRead(10);
  int readValue = analogRead(A0);
Serial.println(readValue);
Serial.println(swval);
  if(swval == HIGH)
  {
  if(readValue > 100)
  {
   digitalWrite(13, HIGH);
  delay(3000);
  digitalWrite(13,LOW);
delay(1000);
    digitalWrite(12, HIGH);
  delay(3000);
  digitalWrite(12,LOW);
delay(1000);
    digitalWrite(11, HIGH);
  delay(3000);
  digitalWrite(11,LOW);
delay(1000);
  }
  }
  else
    {
    digitalWrite(13,LOW);
  digitalWrite(12,LOW);
  digitalWrite(11,LOW);
    }
  }