Hello This is because most sensor frame size is less than 10 (and to save space), SENSOR_DATA_FIXED_LENGTH is defined as 10. you could change the definition of SENSOR_DATA_FIXED_LENGTH (in libraries/Arduino_BHY2/src/sensors/SensorTypes.h) to a larger value such as 30 (which is greater than the frame size of 29 for sensor id 171), and you should be able to see the actual IAQ values rather than 0. BTW, the similar code (you are using from the google drive) is actually publically available on github. again, you need to change the definition of SENSOR_DATA_FIXED_LENGTH to a larger value. we will see in future, a more flexbile solution could be provided to accomodate for both large frames and small frames, right now, only few sensors have frame size larger than 10 that's why Arduino has implemented it this way.
... View more