Short C code for arduino serial communication