int led1 = 14;
String input;

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

void loop() {
  while (Serial.available()) {
    input = Serial.readString();
    input.trim();
    Serial.println(input);
  }
  if (input == "onled1") {
    digitalWrite(led1, HIGH);
  }
}