int LED_01 = 7;
int button_pin = 10;
int button_state;
void setup() {
Serial.begin(9600);
pinMode(LED_01, OUTPUT);
pinMode(button_pin, INPUT);
}
void loop() {
button_state = digitalRead(button_pin);
Serial.println(button_state);
if (button_state ==1){
digitalWrite(LED_01, HIGH);
}
else{
digitalWrite(LED_01, LOW);
}
}