This thread might be worth a look - it contains some discussion of calculations for turning ohms into ppm? They’re in Python rather than C though - it may be easier to see what calculations are being used in the Arduino library you mentioned and implement those?