57. Arduino UART Programming

Question.3

What will be printed on the Serial monitor? ( after executing the following code )
 


void setup() {
  Serial.begin(115200);
  Serial.print("Val1 = ");
  delay(1000);
}

void loop() {
  if (Serial.available() > 0) {
    String val1 = String(Serial.read());
    Serial.println(val1);
  }
  while (1);
}


 

Select Answer