Inertial Sensor Heading Programming

I am using block to program the inertial sensor. However, it is always giving me a reading of 0 even when it is spinning. I am trying to create a code so that when i input a degree, the robot spins until it has the correct heading. Why is the sensor saying that heading is 0?