
int pin12 = 12;
int on=0;

void setup(){
  
  Serial.begin(9600);
  pinMode(pin12,OUTPUT);
  
  }


void loop() {
  
  on = Serial.available();

if(on > 0) {
  on = Serial.read();
   if(on=='E'){
    digitalWrite(pin12,HIGH);
    }
    if (on =='A') {
      digitalWrite(pin12,LOW);
      }
      }delay(20);
      }
