` // by N M D Weerasinghe SLCOTM
String Incomming_msg = "";
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial.println();
}
void loop() {
// put your main code here, to run repeatedly:
if(Serial.available()>0)
{
Incomming_msg = Serial.readString();
Serial.println(Incomming_msg);
Serial.println(Incomming_msg.toInt());
if (Incomming_msg.indexOf("LED1 ON") >= 0)
{
Serial.println("Turn ON the LED 1");
}
}
}