Make sure your baud rates match.
Look to the serial input basics tutorial for robust ways to receive data.