Description
Set the data transmission rate (the number of bytes transmitted per second) when the computer and Arduino are communicating through the serial port. The following rates can be used: 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, or 115200. , You can also set other transmission rates according to the device you are using.
Syntax
Serial.begin(speed)
Example Code
void setup() {
Serial.begin(9600); //opens serial port, sets data rate to 9600 bps
}