What's your hardware setup? Got a picture? Can you show the whole code? I wonder what your TX pin is doing with the serial in, but I can't tell from here.

The code you just posted is not inverted, so I assume you have the max232 back in?