int led1 = 14;
String input;

void setup() {
  Serial.begin(115200);
  pinMode(led1, OUTPUT);
}

void loop() {
  while (!Serial.available()) {}
  String input = Serial.readString();
  Serial.println(input);

  if (input == "onled1") {
    digitalWrite(led1, HIGH);
  }
}