//MATRICULA: MRID196808
#define OFF LOW
#define ON HIGH
const int LED_GREEN = 4;
const int LED_RED = 5;
const int PButton = 23;
boolean PB_state = false;

void setup() {
  Serial.begin(115200);
  delay(20),
  
  pinMode(LED_GREEN, OUTPUT);
  pinMode(LED_RED, OUTPUT);
  pinMode(PButton, INPUT);

  digitalWrite(LED_GREEN, LOW);
  digitalWrite(LED_RED, HIGH);  
}

void loop() {
PB_state = digitalRead(PButton);
if (PB_state){
  Serial.println("MRID19939 CAMINA");
  digitalWrite(LED_GREEN, ON);
  digitalWrite(LED_RED, OFF);
}else{
  Serial.println("MRID19939 NO CAMINES");
  digitalWrite(LED_GREEN, OFF);
  digitalWrite(LED_RED, ON);
}
  delay(200);
}