Programming XBee to transmit and receive data