How to read multiple sensors in Processing using Arduino I2C

I also figured out that it’s dead reckoning I need using the accelerometer and quaternions to calculate “position” in a virtual space assuming that when you stop you are at rest and a new point