- Use the real device
- Read the accelerometer data
local tiltX, tiltY, tiltZ = pd.readAccelerometer()
after starting it withpd.startAccelerometer()
Sometimes, the initial values are incorrect (just in the first frame) and looks like default values (0.0 0.0 0.0 ). It doesn't happen in simulator.