Serial Communication between XBee using Arduino

Priyanshu27:
There are no two codes as I'm using this code as the complete code.

You will make life a great deal easier for yourself if you create two separate programs - one for transmit and one for receive. At least do that until you are know how to get the communication working. Just make the simplest programs possible that will send and receive the data in the format you require.

It will also make it a great deal easier to help you.

When you have it working then you can combine the code into a single program if you wish.

...R