Analog Write Issue with Xbee

Now your pwm is just sending average, as if it was not receiving any thing. Try to put a monitor your serial line on the receiver side to see what you receive.