Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. My Project
  3. Air Quality: CO2 Sensor MH-Z14

Air Quality: CO2 Sensor MH-Z14

Scheduled Pinned Locked Moved My Project
gas sensorair qualityco2
28 Posts 12 Posters 28.2k Views 13 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • epierreE Offline
    epierreE Offline
    epierre
    Hero Member
    wrote on last edited by
    #12

    @roy any news ? I've sent you an email but did not get any answer so far...

    z-wave - Vera -> Domoticz
    rfx - Domoticz <- MyDomoAtHome <- Imperihome
    mysensors -> mysensors-gw -> Domoticz

    1 Reply Last reply
    0
    • R Offline
      R Offline
      roy
      wrote on last edited by
      #13

      @epierre ,can you please send your email again, it maybe spammed by my server .

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mortommy
        wrote on last edited by mortommy
        #14

        Hi @epierre ,
        the CO2 sensor is not available anymore in the store page. On aliexpress there are sensors from 25$ to 80$; did you test the cheapest one? Or in the meantime you have any other suggestion? I'd like to order one and make my CO2 sensor node.
        Thank you.
        Regards.

        epierreE alexsh1A 2 Replies Last reply
        0
        • M mortommy

          Hi @epierre ,
          the CO2 sensor is not available anymore in the store page. On aliexpress there are sensors from 25$ to 80$; did you test the cheapest one? Or in the meantime you have any other suggestion? I'd like to order one and make my CO2 sensor node.
          Thank you.
          Regards.

          epierreE Offline
          epierreE Offline
          epierre
          Hero Member
          wrote on last edited by
          #15

          @mortommy the €23 is the same I have (I paid $70 at the time...)

          z-wave - Vera -> Domoticz
          rfx - Domoticz <- MyDomoAtHome <- Imperihome
          mysensors -> mysensors-gw -> Domoticz

          1 Reply Last reply
          0
          • M mortommy

            Hi @epierre ,
            the CO2 sensor is not available anymore in the store page. On aliexpress there are sensors from 25$ to 80$; did you test the cheapest one? Or in the meantime you have any other suggestion? I'd like to order one and make my CO2 sensor node.
            Thank you.
            Regards.

            alexsh1A Offline
            alexsh1A Offline
            alexsh1
            wrote on last edited by alexsh1
            #16

            @mortommy I'd strongly suggest you go for this sensor. It is expensive, but very-very precise and reliable. You can go for MQ-135 - this is what I did at the beginning. It is utterly useless and can probably be used in enclosed premises, but not in normal houses/flats as its reading are just jumping up and down.

            You can go for the MH-Z19 sensor - it is not much cheaper than MH-Z14 (or MH-Z14A).

            http://www.aliexpress.com/item/FREE-SHIPPING-MH-Z19-CO2-detection-sensor-module/32576013283.html?spm=2114.30010308.3.21.cLSnEB&ws_ab_test=searchweb201556_10,searchweb201602_5_10037_10017_507_10032,searchweb201603_2&btsid=ce733a29-ca27-4f2a-b438-95e3abc647b0

            epierreE 1 Reply Last reply
            0
            • M Offline
              M Offline
              mortommy
              wrote on last edited by
              #17

              thank you guys. :thumbsup:

              1 Reply Last reply
              0
              • alexsh1A alexsh1

                @mortommy I'd strongly suggest you go for this sensor. It is expensive, but very-very precise and reliable. You can go for MQ-135 - this is what I did at the beginning. It is utterly useless and can probably be used in enclosed premises, but not in normal houses/flats as its reading are just jumping up and down.

                You can go for the MH-Z19 sensor - it is not much cheaper than MH-Z14 (or MH-Z14A).

                http://www.aliexpress.com/item/FREE-SHIPPING-MH-Z19-CO2-detection-sensor-module/32576013283.html?spm=2114.30010308.3.21.cLSnEB&ws_ab_test=searchweb201556_10,searchweb201602_5_10037_10017_507_10032,searchweb201603_2&btsid=ce733a29-ca27-4f2a-b438-95e3abc647b0

                epierreE Offline
                epierreE Offline
                epierre
                Hero Member
                wrote on last edited by
                #18

                @alexsh1 said:

                @mortommy I'd strongly suggest you go for this sensor. It is expensive, but very-very precise and reliable. You can go for MQ-135 - this is what I did at the beginning. It is utterly useless and can probably be used in enclosed premises, but not in normal houses/flats as its reading are just jumping up and down.

                agreed ! that comes with experience !

                You can go for the MH-Z19 sensor - it is not much cheaper than MH-Z14 (or MH-Z14A).

                it is now $3 difference

                z-wave - Vera -> Domoticz
                rfx - Domoticz <- MyDomoAtHome <- Imperihome
                mysensors -> mysensors-gw -> Domoticz

                1 Reply Last reply
                0
                • F Offline
                  F Offline
                  flopp
                  wrote on last edited by
                  #19

                  I am playing with a MH-Z19 and found this thread and the link in the first post is not working.

                  This is the correct link

                  https://github.com/empierre/arduino/blob/master/AirQuality-CO2-MH-Z14.ino

                  1 Reply Last reply
                  0
                  • alowhumA Offline
                    alowhumA Offline
                    alowhum
                    Plugin Developer
                    wrote on last edited by
                    #20

                    Does the MH-Z14 code work for the MH-Z19 as well?

                    D 1 Reply Last reply
                    0
                    • alowhumA alowhum

                      Does the MH-Z14 code work for the MH-Z19 as well?

                      D Offline
                      D Offline
                      Daniel Linder
                      wrote on last edited by
                      #21

                      @alowhum. Yes it does. I've built a combined Co2, humidity and temp sensor using mh-z19 and dht22. it shows current values on an oled and reports back to openhab. will use a number of these for ventilation control.If anyone is interested I'll post the complete build when done (currently waiting for more components from China).

                      solaS 1 Reply Last reply
                      0
                      • alowhumA Offline
                        alowhumA Offline
                        alowhum
                        Plugin Developer
                        wrote on last edited by alowhum
                        #22

                        The downside is that it uses pulse-width modulation to get the data out. This isn't a problem, but it soes mean that you are taking a digital value, turning it into an analog voltage reading that analog voltage with Arduino, and turning it back into a digital value.

                        I scraped together some code for the MH-Z19 that uses a serial connection to talk to the sensor instead. The sketch can be found here.

                        I also highly recommend getting the BME280 sensor for your humidity needs. It even gives you barometric data, so you can have your own weather prediction. A sketch that uses that sensor, and that is very easy to combine with the MH-Z19 sketch I just posted to, can be found here.

                        If you also want to integrate the best-buy dust sensor, have a look at this sketch that already combines the MH-Z19 Co2 sensor and the PMS-7003 air quality (fine dust) sensor.

                        1 Reply Last reply
                        0
                        • D Offline
                          D Offline
                          Daniel Linder
                          wrote on last edited by
                          #23

                          HI,
                          I'll try your serial interface code later.
                          It seems to be an accurate sensor, however - the values are a bit "bouncy". I'll incorporate a "running average" on the measurements - to calm it down.
                          I am always tempted to add more sensors to the nodes, but in this case it is not possible.
                          My casing design would not even allow for one additional resistor... ;-)

                          1 Reply Last reply
                          1
                          • D Daniel Linder

                            @alowhum. Yes it does. I've built a combined Co2, humidity and temp sensor using mh-z19 and dht22. it shows current values on an oled and reports back to openhab. will use a number of these for ventilation control.If anyone is interested I'll post the complete build when done (currently waiting for more components from China).

                            solaS Offline
                            solaS Offline
                            sola
                            wrote on last edited by
                            #24

                            @Daniel-Linder Hi Daniel,

                            I would be quite interested in your Mh-z19 and DHT22 sensor node, I am building a similar one.

                            Please post the build if you still have it.

                            Many thanks.

                            R 1 Reply Last reply
                            0
                            • solaS sola

                              @Daniel-Linder Hi Daniel,

                              I would be quite interested in your Mh-z19 and DHT22 sensor node, I am building a similar one.

                              Please post the build if you still have it.

                              Many thanks.

                              R Offline
                              R Offline
                              reinhold
                              Hardware Contributor
                              wrote on last edited by
                              #25

                              FWIW, some weeks ago I ported the MH-Z19 code (the serial interface, by default connected to digital pins 6 and 7) to NodeManager for use in my own little gas detection node (MH-Z19 and four MQ-... sensors). The MH-Z19 code is included in the 1.6 release of NodeManager, so if you are using NodeManager for your nodes, the MH-Z19 sensor should be really easy to set up and use.

                              1 Reply Last reply
                              0
                              • solaS Offline
                                solaS Offline
                                sola
                                wrote on last edited by
                                #26

                                @reinhold said in Air Quality: CO2 Sensor MH-Z14:

                                orted the MH-Z19 code (the serial interface, by default connected to digital pins 6 and 7) to NodeManager for use in my own little gas detection node (MH-Z19 and four MQ-... sensors). The MH-Z19 code is included in the 1.6 release of NodeManager, so if you are using NodeManager for your nodes, the MH-Z19 sensor should be really easy t

                                Many thanks, I will check out NodeManager, looks like some really cool stuff.

                                1 Reply Last reply
                                0
                                • G Offline
                                  G Offline
                                  Gelisob
                                  wrote on last edited by
                                  #27

                                  Hello guys, could somebody clear up, what sensor to prefer. MH-Z14A vs MH-Z19 ?
                                  Their price is very similar and kinda meh in comparison but which should one prefer and when?
                                  I can see Z19 having some response time lower but power consumption higher...
                                  Maybe someone here already made the comparisons and can share that useful information into this thread, so that others would also know what to pick and why?

                                  Thanks :)

                                  1 Reply Last reply
                                  0
                                  • alowhumA Offline
                                    alowhumA Offline
                                    alowhum
                                    Plugin Developer
                                    wrote on last edited by
                                    #28

                                    Go with the Z19. Here's some ready made code:
                                    https://forum.mysensors.org/topic/6528/mh-z19-co2-sensor/5

                                    1 Reply Last reply
                                    0
                                    Reply
                                    • Reply as topic
                                    Log in to reply
                                    • Oldest to Newest
                                    • Newest to Oldest
                                    • Most Votes


                                    21

                                    Online

                                    11.7k

                                    Users

                                    11.2k

                                    Topics

                                    113.1k

                                    Posts


                                    Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                    • Login

                                    • Don't have an account? Register

                                    • Login or register to search.
                                    • First post
                                      Last post
                                    0
                                    • MySensors
                                    • OpenHardware.io
                                    • Categories
                                    • Recent
                                    • Tags
                                    • Popular