Another possible approach to defining data exchange language-independently is Google’s scheme of protocol buffers.

Keeping the microcontroller asleep as much as possible is a key goal for a sensor system, so it makes sense to organise the entire software process around that.