Possible to directly read Tracker IMU accel and gyro values in loop?

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.