Hi there,
So that is AGE old , BRO… The Wait on Serial is the First one…
The second one is related to the BSP, and explicitly naming the IMU interrupt pin, READ more… and use the search you’ll find the code examples and threads myself and @msfujino have created , answered and tested.
HTH
GL PJ