Switch-case example, showing how to take different actions based on the characters received in the serial port