# Soil Respiration: CO2 chamber measurements

**URL:** <https://forum.hackteria.org/t/soil-respiration-co2-chamber-measurements/349>\
**Category:** HUMUS.Sapiens\
**Created:** [April 15, 2018, 7:04am UTC](https://forum.hackteria.org/t/soil-respiration-co2-chamber-measurements/349 "2018-04-15T07:04:19Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![dusjagr](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hackteria.org/dusjagr/32/24_2.png) [@dusjagr](https://forum.hackteria.org/u/dusjagr)\
**Post date:** [April 15, 2018, 7:04am UTC](https://forum.hackteria.org/t/soil-respiration-co2-chamber-measurements/349/1 "2018-04-15T07:04:19Z")

</div>

Continuing the discussion from [OurSci, collecting and sharing measurement data from sensors](https://forum.hackteria.org/t/oursci-collecting-and-sharing-measurement-data-from-sensors/333/7):

Let’s start a dediacated topics for such measurements setups, co2 chambers for measuring microbial activity soils.

I have ordered and tested a few different CO2 sensors, for cheap (relatively) from Ali-xpress and other online sources. notes about reading the sensors are documented on the hackteria wiki:  
[https://www.hackteria.org/wiki/CO2](https://www.hackteria.org/wiki/CO2)

sofar i have succesfully read the values from arduino and teensy, added a little OLED display and got quite confused about the sensor calibration and preheating… but getting there!

To Do:

- make simple plug to connect sensor to board (ethernet cable?)
- add ventilator to chamber
- choose simple chamber, size? IKEA?
- add humidity sensor into chamber
- add something to take up the potential condensation of water?

First Measurements:

 ![Selection_701](https://canada1.discourse-cdn.com/flex030/uploads/hackteria/original/1X/36fd66b12baec1dad398c1c90e074bbe0bedf0cf.png)

---

<div class="post-metadata">

**Author:** ![dusjagr](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hackteria.org/dusjagr/32/24_2.png) [@dusjagr](https://forum.hackteria.org/u/dusjagr)\
**Post date:** [April 15, 2018, 5:15pm UTC](https://forum.hackteria.org/t/soil-respiration-co2-chamber-measurements/349/2 "2018-04-15T17:15:39Z")

</div>

More developements on using the MH-Z19 sensor on the Teensy 3.2 with OLED screen.  
Got some nice code working now to show the CO2 measurement data and display the time when it reaches a certain threshold.  
@Pannu what are reasonable values of soil respiration over time for soil?  
and what kinda shape volume of a chamber?

 ![IMG_20180415_175044](https://canada1.discourse-cdn.com/flex030/uploads/hackteria/original/1X/7994cec58e85e2e239a1a2016101fdb9e519df4c.jpg)

still got to work a bit on the usability. maybe add another button to start the measurement, reset the timer, and export the full plot for further analysis.

 ![IMG_20180415_190438_HDR](https://canada1.discourse-cdn.com/flex030/uploads/hackteria/original/1X/1dcc346aa5e74b72fb8d811fdbd6ce5fbed83987.jpg)

---

<div class="post-metadata">

**Author:** ![ingenuityworx](https://avatars.discourse-cdn.com/v4/letter/i/848f3c/32.png) [@ingenuityworx](https://forum.hackteria.org/u/ingenuityworx)\
**Post date:** [April 15, 2018, 11:27pm UTC](https://forum.hackteria.org/t/soil-respiration-co2-chamber-measurements/349/3 "2018-04-15T23:27:13Z")

</div>

Marc,

I noticed your fine work on the CO 2 sensor. You asked about typical values in soil for CO2. I have worked with farmers and labs performing soil respiration testing and have developed a Jean understanding of CO2 respiration and its use. The CO2 value will be directly related to the temperature and moisture levels. No respiration at 32F and doubling for every 10C increase in temp.

Moisture is more of a curve that increases and is max at about 60-70% moisture. The base level of CO2 will be based on organic matter content and soil type.

If anyone has questions or need more information let me know. Keep up the good work all!

Bob

IngenuityWorx

207-692-2600

[Bob@ingenuityworx.com](mailto:Bob@ingenuityworx.com)

---

<div class="post-metadata">

**Author:** ![Pannu](https://avatars.discourse-cdn.com/v4/letter/p/5daacb/32.png) [@Pannu](https://forum.hackteria.org/u/Pannu)\
**Post date:** [April 16, 2018, 10:02am UTC](https://forum.hackteria.org/t/soil-respiration-co2-chamber-measurements/349/4 "2018-04-16T10:02:43Z")

</div>

That screen sure looks great. It’s really useful to see if the measurement makes sense from the beginning!

As mentioned, the amount of decomposing material, the quality of decomposing material, temperature and soil moisture are the main factors affecting CO2 production rate (if we assume that microbes are well and happy). The change of CO2 inside the chamber also depends on the (mean) chamber height (volume / surface area = (mean) height).

In good summer conditions, I would say that CO2 increase in a 10 cm high chamber could be around 1 ppm / s. This estimation is not accurate at all, but it should be easy to remember!

For CO2 I think in theory it’s good to use rather large chamber, but installing a large chamber “airtight” can be very difficult, because soil is never perfectly flat. Collars that are buried into soil well before the actual measurements can be used as well. Collar means an extension of the chamber that goes belowground and is permanently installed to the soil. The problem with collars is that the soil is disturbed during the installation, especially roots can be broken. Wet sand or something like that can be used to seal the holes between the collar and the soil, if digging the collar deep (5cm or so) into the soil is not an option.

So, I would recommend using as large chamber as possible, which in practice means quite small chambers (diameter 30cm or less). Because the signal of CO2 is so good, I would recommend tall chambers (20cm high or even more).

A perfect chamber is circular cylinder (best area/perimeter ratio). Also the formula for flux calculation (moles / m^2 / s^1) gets a bit simpler because h=V/A.

---

<div class="post-metadata">

**Author:** ![sachiko](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@sachiko](https://forum.hackteria.org/u/sachiko)\
**Post date:** [April 19, 2018, 10:53am UTC](https://forum.hackteria.org/t/soil-respiration-co2-chamber-measurements/349/5 "2018-04-19T10:53:39Z")

</div>

> **[Can Dirt Save the Earth?](https://www.nytimes.com/2018/04/18/magazine/dirt-save-earth-carbon-farming-climate-change.html?smid=pl-share)**
>
> Agriculture could pull carbon out of the air and into the soil — but it would mean a whole new way of thinking about how to tend the land.

---

<div class="post-metadata">

**Author:** ![dusjagr](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hackteria.org/dusjagr/32/24_2.png) [@dusjagr](https://forum.hackteria.org/u/dusjagr)\
**Post date:** [April 20, 2018, 9:02am UTC](https://forum.hackteria.org/t/soil-respiration-co2-chamber-measurements/349/6 "2018-04-20T09:02:27Z")

</div>

![IMG_20180419_172702_HDR](https://canada1.discourse-cdn.com/flex030/uploads/hackteria/original/1X/9eaef9a8294d7f361dbe72de209d09471c6da2f7.jpg)  
Great visit by @manuel to RandeLab and introduction into [Our-Sci](https://app.our-sci.net/)

Got it all installed and now ready to upload some data from my phone. thx for the intro!

---

<div class="post-metadata">

**Author:** ![dusjagr](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hackteria.org/dusjagr/32/24_2.png) [@dusjagr](https://forum.hackteria.org/u/dusjagr)\
**Post date:** [May 3, 2018, 10:48am UTC](https://forum.hackteria.org/t/soil-respiration-co2-chamber-measurements/349/7 "2018-05-03T10:48:03Z")

</div>

reading a bit more about that Soil Respiration on wikipedia…

> **[Soil respiration | Global carbon cycling](https://en.wikipedia.org/wiki/Soil_respiration#Global_carbon_cycling)**
>
> Soil respiration plays a critical role in the regulation of carbon cycling at the ecosystem and global scales. Each year approximately 120 petagrams (Pg) of carbon are taken up by land plants and a similar amount is released to the atmosphere through ecosystem respiration. The global soils contain up to 3150 Pg of carbon, of which 450 Pg exist in wetlands and 400 Pg in permanently frozen soils. The soils contain more than four times the carbon as the atmosphere. Researchers have estimated th

---

<div class="post-metadata">

**Author:** ![manuel](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hackteria.org/manuel/32/297_2.png) [@manuel](https://forum.hackteria.org/u/manuel)\
**Post date:** [May 6, 2018, 9:52pm UTC](https://forum.hackteria.org/t/soil-respiration-co2-chamber-measurements/349/8 "2018-05-06T21:52:52Z")

</div>

@dusjagr @Pannu  
The Arduino code for the respiration chamber is available over here  
[https://gitlab.com/our-sci/measurement-scripts/tree/master/mh-z16-randen/arduino-mh-z16-randen](https://gitlab.com/our-sci/measurement-scripts/tree/master/mh-z16-randen/arduino-mh-z16-randen)

The Android app is found over here  
[https://play.google.com/store/apps/details?id=org.oursci.android.ourscikit](https://play.google.com/store/apps/details?id=org.oursci.android.ourscikit)

First time you connect via Bluetooth you need to pair the HC-05 with your phone first. You need to do that in the Android system settings, the pairing code is 1234.

I created a Survey with a sample ID and location question over here:  
[https://app.our-sci.net/#/survey/by-form-id/build\_Randen-Soil-Chamber-Measurement-with-the-Soil-Chamber-built-at-Randelab\_1525625829](https://app.our-sci.net/#/survey/by-form-id/build_Randen-Soil-Chamber-Measurement-with-the-Soil-Chamber-built-at-Randelab_1525625829)

It will show up in the Android app as “Randen Soil Chamber”.

Let me know how it goes and keep up the good work!

---

<div class="post-metadata">

**Author:** ![dusjagr](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hackteria.org/dusjagr/32/24_2.png) [@dusjagr](https://forum.hackteria.org/u/dusjagr)\
**Post date:** [May 8, 2018, 3:16pm UTC](https://forum.hackteria.org/t/soil-respiration-co2-chamber-measurements/349/9 "2018-05-08T15:16:10Z")

</div>

Testing all the different sensors and soil-chambers using the RBSSA method (rotten banana skin soil analogue)

 ![RandeSoilChamber](https://canada1.discourse-cdn.com/flex030/uploads/hackteria/original/1X/b71fdcaf40cd953fdd1102365635a13d9865b35a.jpg)

---

<div class="post-metadata">

**Author:** ![Pannu](https://avatars.discourse-cdn.com/v4/letter/p/5daacb/32.png) [@Pannu](https://forum.hackteria.org/u/Pannu)\
**Post date:** [May 9, 2018, 5:58pm UTC](https://forum.hackteria.org/t/soil-respiration-co2-chamber-measurements/349/10 "2018-05-09T17:58:02Z")

</div>

In the graph below, some tests with two sub-100€ CO2 sensors: Airsense K30 (I think 2000ppm model), and MH-Z16. MH-Z16 is about half of the price of K30. Shortly: they seem to have very similar response, suggesting that they work as they should.

Both sensors were inside the same chamber that was kind-of airtight. The air space inside the chamber was mixed with fans. Using 9V instead of 3.3V seemed to decrease the response time of the sensors considerably (this is good news). MH-Z19B testing was inconclusive, because of some technical-practical issues. However, it seems that MH-Z19B (the golden box and also the cheapest of the sensors) has in practice very long response time (some minutes), and it does not get shorter by ventilation. K30 can explain only about 30% of the variance of MH-19b, which is low. This is because of the problems with the experimental setup, and the very different response time of the sensors.

Anyway here is the picture, showing that in the today’s test environment the sensors respond very similarly (which is great news).  
 ![Z16vsK30](https://canada1.discourse-cdn.com/flex030/uploads/hackteria/original/1X/992417ff47c2db92ba324f65f826f5e425c37a56.png)

Edit.: Here is an additional picture of the measurement, just to get the idea what was done.

![Z16vsK30_temporal](https://canada1.discourse-cdn.com/flex030/uploads/hackteria/original/1X/e516e0991adcc9c05a77c8ba887cc3009bf2b552.png)

---

<div class="post-metadata">

**Author:** ![manuel](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hackteria.org/manuel/32/297_2.png) [@manuel](https://forum.hackteria.org/u/manuel)\
**Post date:** [May 9, 2018, 9:36pm UTC](https://forum.hackteria.org/t/soil-respiration-co2-chamber-measurements/349/11 "2018-05-09T21:36:26Z")

</div>

Updated the app to display the measurement zoomed too (auto axis):  
[https://app.our-sci.net/processor/randen-soil-chamber?formId=build\_Randen-Soil-Chamber-Measurement-with-the-Soil-Chamber-built-at-Randelab\_1525625829&instanceId=uuid:dcaa3549-061c-4c2e-bd03-4451001c5746&filename=measurement\_2018-05-07T15%3A33%3A57.885%2B02%3A00.json](https://app.our-sci.net/processor/randen-soil-chamber?formId=build_Randen-Soil-Chamber-Measurement-with-the-Soil-Chamber-built-at-Randelab_1525625829&instanceId=uuid:dcaa3549-061c-4c2e-bd03-4451001c5746&filename=measurement_2018-05-07T15%3A33%3A57.885%2B02%3A00.json)

Should now be easier to detect trends in the curve.

---

<div class="post-metadata">

**Author:** ![dusjagr](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hackteria.org/dusjagr/32/24_2.png) [@dusjagr](https://forum.hackteria.org/u/dusjagr)\
**Post date:** [May 13, 2018, 9:51pm UTC](https://forum.hackteria.org/t/soil-respiration-co2-chamber-measurements/349/12 "2018-05-13T21:51:03Z")

</div>

hmmm… making our lives easier. or is it cheating? only 40$:  
[https://www.aliexpress.com/item/Free-ship-by-quick-Singapore-post-5pcs-lot-Raspberry-Pi-Night-Vision-Camera-OV5647-raspberry-pi/32644108014.html?spm=2114.10010108.1000013.3.4336101f1EREEQ&traffic\_analysisId=recommend\_2088\_2\_90158\_iswistore&scm=1007.13339.90158.0&pvid=e4741bc8-2b62-4dd5-8912-715e292bdcb6&tpp=1](https://www.aliexpress.com/item/Free-ship-by-quick-Singapore-post-5pcs-lot-Raspberry-Pi-Night-Vision-Camera-OV5647-raspberry-pi/32644108014.html?spm=2114.10010108.1000013.3.4336101f1EREEQ&traffic_analysisId=recommend_2088_2_90158_iswistore&scm=1007.13339.90158.0&pvid=e4741bc8-2b62-4dd5-8912-715e292bdcb6&tpp=1)

i wonder what chip is on there. strangely the same system gets up to 120 $ on other ali-express sellers.

it’s using this NDIR co2 sensor:  
[https://www.amphenol-sensors.com/en/products/telaire-air-quality/sensor-modules/3215-t6700](https://www.amphenol-sensors.com/en/products/telaire-air-quality/sensor-modules/3215-t6700)

---

<div class="post-metadata">

**Author:** ![manuel](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hackteria.org/manuel/32/297_2.png) [@manuel](https://forum.hackteria.org/u/manuel)\
**Post date:** [May 13, 2018, 10:18pm UTC](https://forum.hackteria.org/t/soil-respiration-co2-chamber-measurements/349/13 "2018-05-13T22:18:02Z")

</div>

The sensor (T6713) looks really cool, it seems to have very low drift and does not require calibration. The sensor alone seems to be around 65 USD at least (mouser and co. ask over 100 USD).

Pretty sure the system for 40$ is without the sensor though.

---

<div class="post-metadata">

**Author:** ![dusjagr](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hackteria.org/dusjagr/32/24_2.png) [@dusjagr](https://forum.hackteria.org/u/dusjagr)\
**Post date:** [May 15, 2018, 9:42am UTC](https://forum.hackteria.org/t/soil-respiration-co2-chamber-measurements/349/14 "2018-05-15T09:42:04Z")

</div>

hmm… maybe.  
we should just try to order that ali thing.

about callibration… it says it doesnt need… bt that means it’s also in ABC mode. auto callibration. and it even says that the calibration doesnt work, in case you use it in low co2 concentration. the ABC assumes regularly vented houses that once in a while are at atmospehric average of 400, and uses this as a baseline.

---

<div class="post-metadata">

**Author:** ![Pannu](https://avatars.discourse-cdn.com/v4/letter/p/5daacb/32.png) [@Pannu](https://forum.hackteria.org/u/Pannu)\
**Post date:** [May 15, 2018, 2:31pm UTC](https://forum.hackteria.org/t/soil-respiration-co2-chamber-measurements/349/15 "2018-05-15T14:31:42Z")

</div>

Somewhere in the description of the cheaper kit, it says that CO2 sensor is not included.

The auto-calibration on MH-Z -sensors seem to require the sensor to be on constantly for 24/48h. By powering off the sensor (via software?) every 23h should disable the feature (just like some anti-calibration command). I wonder if the calibration changes the slope, or the offset. If it just changes the offset (‘a’ parameter in the calibration line: [co2]=a+bx), then it should not even matter in chamber measurements.

Ideally, the sensor should be able to measure concentrations under 400ppm. This would mean that we could measure photosynthesis. SenseAir K30 can do it (but it also autocalibrates).

It would be interesting to do some further testing on the sensors, namely response time with/without a fan, response to CO2 concentration / temperature / air humidity / how does the calibration actually works. At University of Helsinki we have CO2 calibration gases, that could be used. Furthermore, we have some serious CO2 analyzers, that could be used as controls (although I have no contract, I have contacts). It would probably take a couple of days for some semi-serious tests. I could to it at some point. I now have K-30, MH-Z16. It would probably be a good idea to have MH-Z19B and T6713 as well.

Testing/calibration CO2 sensors is one thing, and the next thing to test would be the chamber + CO2 sensor combination. We have a test setup for that in [Hyytiälä](https://www.helsinki.fi/en/research-stations/hyytiala-forestry-field-station). It would take about a week to do some serious testing, so this won’t be happening instantly.

P.S. Related to open research (open science): Under the Hyytiälä web page, check the [Open data page](https://www.helsinki.fi/en/research-stations/hyytiala-forestry-field-station/open-data), [SMEAR online data](https://avaa.tdata.fi/web/smart/smear) and [https://openscience.fi](https://openscience.fi). SMEAR II is the measurement station in Hyytiälä. The new version of the site is just put online, and some information still seems to be missing.

---

<div class="post-metadata">

**Author:** ![dusjagr](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hackteria.org/dusjagr/32/24_2.png) [@dusjagr](https://forum.hackteria.org/u/dusjagr)\
**Post date:** [June 16, 2018, 7:11am UTC](https://forum.hackteria.org/t/soil-respiration-co2-chamber-measurements/349/16 "2018-06-16T07:11:26Z")

</div>

I am finally back to working on the Soil Respiration chamber. As i left all my working prototypes with you guys… @julian and @Pannu i had to make a new one.

still not so sure about how and if at all to make a PCB, wanna make some more tests first with hand-made prototypes. here is my newest creation: The BambooBox

 ![IMG_20180616_122121](https://canada1.discourse-cdn.com/flex030/uploads/hackteria/original/1X/d41309aca6e80bb4a7af8fc662c5779e3398e2d5.jpg)

Using the same hardware connections as the KiljuBox, 2 buttons, audio-output, bluetooth etc…  
this time i added the Dallas Temperature sensor on Digital Pin 6 to also measure soil-temp.  
no more use of that other CS8211 eCO sensor. it’s crap anyway.

next week, tuesday / wednesday our friend mat from [Global Urban Forest](https://globalurbanforest.com.au/) will visit jogja and we’ll do some testing and comparison. Really wonder what’s in this BlackBox!

 ![Mats_blackBox](https://canada1.discourse-cdn.com/flex030/uploads/hackteria/original/1X/62044ebcaed1fd3ff8376af77c307a1924c386ea.jpg)

---

<div class="post-metadata">

**Author:** ![dusjagr](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hackteria.org/dusjagr/32/24_2.png) [@dusjagr](https://forum.hackteria.org/u/dusjagr)\
**Post date:** [June 16, 2018, 7:29am UTC](https://forum.hackteria.org/t/soil-respiration-co2-chamber-measurements/349/17 "2018-06-16T07:29:39Z")

</div>

It would be great to have some remote video-calls together next week! especially on tuesday.  
@gbathree  
@manuel  
@Pannu  
@badgeek

---

<div class="post-metadata">

**Author:** ![dusjagr](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hackteria.org/dusjagr/32/24_2.png) [@dusjagr](https://forum.hackteria.org/u/dusjagr)\
**Post date:** [June 17, 2018, 5:15am UTC](https://forum.hackteria.org/t/soil-respiration-co2-chamber-measurements/349/18 "2018-06-17T05:15:07Z")

</div>

Finally made that wiring diagram for the CO2 Soil Respiration sensor, aka BambooBox, formerly lknown as KiljuBox. It’s easy to reproduce, all components can be ordered from ali-express and only a bit of wiring and soldering is needed.

 ![CO2-BambooBox_WiringSchema](https://canada1.discourse-cdn.com/flex030/uploads/hackteria/original/1X/1338f9902d7ed7c37bb060d3f1bf8c2dacea3d83.jpg)

See the details of the connections to the Teensy here aswell, for reference and arduino code.

---

<div class="post-metadata">

**Author:** ![Pannu](https://avatars.discourse-cdn.com/v4/letter/p/5daacb/32.png) [@Pannu](https://forum.hackteria.org/u/Pannu)\
**Post date:** [June 18, 2018, 12:34pm UTC](https://forum.hackteria.org/t/soil-respiration-co2-chamber-measurements/349/19 "2018-06-18T12:34:30Z")

</div>

I have not done much with the system now, except that I discovered a problem with Bluetooth, and also that my multi-meter does not anymore measure resistance.

In my opinion it’s better to give a 12V fan 5V instead of 3.3V (and definitely not 12V). Normally the mixing (fan power) should be as low as possible, but with the MH-Z16, proper ventilation will improve the response time considerably.

A small teleconference sounds good!

---

<div class="post-metadata">

**Author:** ![dusjagr](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hackteria.org/dusjagr/32/24_2.png) [@dusjagr](https://forum.hackteria.org/u/dusjagr)\
**Post date:** [June 20, 2018, 3:23pm UTC](https://forum.hackteria.org/t/soil-respiration-co2-chamber-measurements/349/20 "2018-06-20T15:23:48Z")

</div>

![FieldTest_BambooBox_PVC-Chamber](https://canada1.discourse-cdn.com/flex030/uploads/hackteria/original/1X/a527dec48371e97f9b18dc86c992118356db1496.jpg)

Had a great session with Matt from G.U.F. and shared some methods, visited local permaculture farm and made some playful measurements with our new hardware.

See documentation growning here:  
[https://www.hackteria.org/wiki/CO2\_Soil\_Respirtion\_Chamber#Soil\_Geeking\_.40\_Lifepatch\_with\_Matt](https://www.hackteria.org/wiki/CO2_Soil_Respirtion_Chamber#Soil_Geeking_.40_Lifepatch_with_Matt)

[Next page](https://forum.hackteria.org/t/soil-respiration-co2-chamber-measurements/349.md?page=2)
