Changing the way data is gathered and transmitted

Sensor values now measured while waiting for a new packet instead of
making the measurements once a packet is received.