const int greenBtn = 13;
const int yellowBtn = 12;
const int blackBtn = 11;
void setup() {
// put your setup code here, to run once:
pinMode(greenBtn, INPUT);
pinMode(yellowBtn, INPUT);
pinMode(4, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int state= digitalRead(greenBtn);
Serial.println(state);
if(state == 1){
digitalWrite(4, 1);
analogWrite(5, 1);
}
}