This is the code to read the XBee controller output using pySerial and sending messages to smartphone using pushOver APIs