Reading ADC values from a set of XBee devices and logging them appropriately