Script for Raspberry Pi that collects data through XBee and forwards to a REST API server