//Alzubair Alshehhi Fab2018 #include // constants won't change. They're used here to set pin numbers: //const int blue = 3; int LED = 7; // the number of the LED pin char oncode = '2'; SoftwareSerial myserial(6,5); void setup() { // initialize the LED pin as an output: pinMode(LED, OUTPUT); // initialize the pushbutton pin as an input: myserial.begin(9600);\ } void loop() { char inputtext = myserial.read(); if (inputtext == oncode) { // turn LED on: digitalWrite(LED, LOW); delay(200); digitalWrite(LED, HIGH); delay(200); }else { // turn LED off: // digitalWrite(green, HIGH); digitalWrite(LED, HIGH); delay(200); } }