Write a program that will read input from the Serial Monitor and echo it back to you.
Last Updated : 16 Jul 2025
Solution:
void setup(){
Serial.begin(9600); // Initialize serial communication at 9600 baud rate
}
void loop(){
// Check if there is any data available to read
if (Serial.available() > 0) {
char incomingbyte = Serial.read(); // Read the incoming byte
Serial.print(incomingbyte); // Echo the byte back to the serial monitor
}
}
Report an error
Meanwhile you can watch this video
Watch Video