#include char val; void setup() { Serial.begin(9600); } void loop() { while (Serial.available()) { val = Serial.read(); Serial.println(val); } }