Airqualitysensor initialised in globally but still not visible in setup or loop function

If you want reliable gas sensing I'd stay away from th CCS811.
I've tested several of these of multiple vendors and never got satisfying results (major drift).

I think @RWB has also performed some tests and came to similar conclusions.
See here