Generate MQTT messages from accelerometer data.