String msg="";
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial.println("Hello111");
}
void loop() {
// put your main code here, to run repeatedly:
if(Serial.available()) {
msg = Serial.readString();
Serial.print("String lenght: ");
Serial.println(msg.length());
}
Serial.println("X");
}