script for parsing xbee sensor readings from serial