const unsigned int BAUD_RATE = 9600; void setup() { Serial.begin(BAUD_RATE); } void loop() { if (Serial.available() <= 0) { return; } Serial.write(Serial.read()); }