Grove_air_quality_sensor_v1_3.py code examples

Can anyone tell me why the there are two different grove_air_quality_sensor_v1_3.py code examples (Grove - Air Quality Sensor v1.3 - Seeed Wiki). One for the Grove Base Hat and the other for the Grove Pi Hat.

They are very different code examples and I am not sure I trust the first one for the Grove Base Hat. I live in rural California is the redwood forest, and it is telling me that the air has high pollution. According to AirNow, our air quality is very good.

I found two codes for different expansion boards, GrovePi+ and Grove Base Hat. The generic code would be the Grove Base Hat code and the GrovePi+ code is a custom code for this expansion board.