Hi folks.

Anybody here knows CO2 atmospheric math?

I’m using this sensor to measure CO2.

It measures CO2 in ppm by volume aka atmosphere.

What I’m using it for is to measure CO2 concentration in water which is measured in ppm by weight.

This is what I have so far.

```
double co2 = K_30.getCO2('p') * 3; //returns co2 value in ppm ('p') or percent ('%')
//there's a glitch sometimes with the sensor output
if(co2 >= 0 && co2 <= 30000) {
co2 = co2 * 0.8317 * 44.01 / 10000;
// quicker than co2/1000000 * 0.8317 * 44.01 / 1000000
// 0.8317 accounts for Henry's Law
// max ppmw will be 36.6 with 10,000 ppmv
}
```

The sensor floats on the waterline detecting any CO2 bouncing out of the water. Do I even need to account for Henry’s law?

Is the math right?