Description
Reads incoming serial data.
Serial.read()
inherits from the Stream utility class.
Syntax
Serial.read()
Parameters
Serial
: serial port object. See the list of available serial ports for each board on the Serial main page.
Returns
The first byte of incoming serial data available (or -1 if no data is available). Data type: int
.