I was able to do this referencing this post:
However, there's a key step which is to enable the imu in particle console, which solved my problem.