🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X
Questions
























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
Latest Updates