#include int led = 12;// declaring the LED pin char ON = 'a';// declaring that ONturnon is the char the will be recived. SoftwareSerial mySerial(0, 1); SoftwareSerial mySerial2(11, 10); char chr; void setup() { mySerial.begin(9600); mySerial2.begin(9600); pinMode(led, OUTPUT); } void loop() { chr = mySerial2.read();// chr will be equal to which the derial will read if (chr == ON) {// if the chr have the same value of ON, the LED will be ON. mySerial.print("El valor enviado es:"); mySerial.print(chr);//Mostramos el caracter enviado digitalWrite(led, HIGH); delay(100); } else { digitalWrite(led, LOW); // digitalWrite(led, HIGH); } }