pot value

You are still not printing the incoming data, to assure that you are receiving what you think you are. Without that, we're just whistling in the dark. It makes sense to try to debug the storing/parsing code only after you know that what is being received matches what is being sent.

Remind me which XBees you have, and how they are configured. Baud rate? What things did you configure?