serial read garbage problem

I hope you aren't going to want to send more than "9" to the serial port, or you may have to rethink your approach. And you may have to read this: