This example works for everybody else so you must be doing something different.
- Have you set up the right bit rate for the serial interface?
- Have you set the monitor to send a newline at the end of the message from the serial monitor?
- Have you tried to read the code at all to see what else you need to do?