Added code to transmit data via xBee