DHT11 sensor Sending data by xbee to xbee

Is this the right way to do this.

Yes.