What is wrong with my char to int conversion from serial input?

The next post will be from @jaddow.

@jaddow, please let us know if anything above is helpful.