int incomingByte = 0; // for incoming serial data
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
if (Serial.available() > 0) {
incomingByte = Serial.read();
Serial.println("I received the following bytes: ");
Serial.println(incomingByte, DEC);
}
}