xbee Pro S2B & xbee pro shield

The adapter output voltage is 6.5 V it should be higher?
Thanks

Yes, the ac/dc adaptor (walwart) you are using is too low. The lowest adaptor recommended is 7V but most people use 9V dc.
The regulator needs at least 2V above the 5V output voltage of the regulator so 5+2=7V.
I'm not sure that is your problem yet with the sketch. I have no personal experience with X-bees so you'll have to wait for someone else to address your question, which is probably never going to happen because you haven't changed the title of your post as suggested several times. I don't know if we can help you if are going to continue to ignore our advice. Maybe you do need help.