Read Commands You Type
Use Serial input to trigger actions from your keyboard.
Talk Back to Your Board
Serial works both ways. You can type into the Monitor and your board will read it, letting you send commands from your keyboard. ⌨️
Is Anything Waiting?
First check if data has arrived with Serial.available(). It returns how many bytes are sitting in the buffer, ready to read.
if (Serial.available() > 0) {
}All lessons in this course
- Serial.begin and Baud Rate
- Serial.print vs println
- Watch Sensor Values Live
- Read Commands You Type