{"id":237944,"date":"2021-03-14T13:35:19","date_gmt":"2021-03-14T12:35:19","guid":{"rendered":"https:\/\/emariete.com\/?p=237944"},"modified":"2023-11-25T11:08:47","modified_gmt":"2023-11-25T10:08:47","slug":"medidor-co2-sensor-mq-135","status":"publish","type":"post","link":"https:\/\/emariete.com\/en\/medidor-co2-sensor-mq-135\/","title":{"rendered":"CO\u2082 Meter with MQ-135 sensor (Don't miss it, it's not what it looks like)"},"content":{"rendered":"<p class=\"wp-block-paragraph\">In this article I am going to tell you what you need to do to set up a <strong>CO2 meter with one sensor MQ-135<\/strong> (sic). An easy and cheap tutorial (it's free).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I hope that, if you are reading this article, it is because you have thought about <strong>build an easy and cheap meter with a MQ-135 sensor and an Arduino or ESP8266<\/strong>You have searched the internet and came up with this page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The <strong>sole objective <\/strong>of this page is that people who want to build a CO\u2082 meter with a MQ-135 sensor find this information <strong>AND DON'T DO IT!<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The same title of <strong>CO\u2082 meter with an MQ-135 sensor is an incongruity in itself.<\/strong>read on to find out why.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There are many projects that promise to measure CO2 but actually use it, as in this case, <strong>electrochemical sensors<\/strong> for general use for the detection of <strong>organic volatiles<\/strong> which not only measure CO2, but also&nbsp;<strong><span style=\"text-decoration: underline;\">all these gases together<\/span><\/strong>so that they really <strong><span style=\"text-decoration: underline;\">you don't know what you are measuring<\/span><\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">These sensors&nbsp;<strong>they are not suitable for measuring CO2<\/strong>. These sensors measure <strong>all organic gases together<\/strong> (Ammonia, Nitrogen Dioxide, Alcohol, Benzene, Carbon Dioxide and Monoxide, Smoke, etc), so if there is someone who is throwing themselves&nbsp;<strong>hydroalcoholic gel<\/strong>&nbsp;or someone&nbsp;<strong>smoking<\/strong>&nbsp;or there is a source of combustion, such as a chimney, the measurements will be triggered.&nbsp;<strong>no way of knowing what is making them go off<\/strong>.<\/p>\n\n\n\n<p class=\"has-pale-cyan-blue-background-color has-background has-medium-font-size wp-block-paragraph\">The only parameter you could get with sensors like the MQ-135 would be a: \"<strong><em>Value in unknown units of something unknown in the air, which we do not know what it is or how much of it there is.<\/em>\"<\/strong>. As you can see, something <strong>very unhelpful<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">What a CO\u2082 meter has to do, as obvious as it may seem, is to measure CO\u2082, and to do so with as much CO\u2082 as possible. <strong>accuracy&nbsp;<\/strong>better.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>In case I haven't made it clear: DO NOT MOUNT A METER BASED ON THE MQ-135 SENSOR IF YOU WANT TO MEASURE CO\u2082!<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I have written this article because many users have come to the Telegram group or have written in comments, full of excitement, because they had built a CO2 meter with the <strong>MQ-135<\/strong>but it was not working properly and they asked for help. <strong>The best help would be if they had read an article like this one.<\/strong>.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>If you really want to build a reliable, accurate CO2 meter that actually measures CO2, check out this tutorial:<\/strong><\/p>\n\n\n<div class=\"gb-container gb-container-fabc95e5\">\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-emariete wp-block-embed-emariete\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"Brhk5u5rGq\"><a href=\"https:\/\/emariete.com\/en\/carbon-gas-co2-meter\/\">A home CO2 meter with Wifi against the coronavirus: The CO2 Easy<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&quot;A home CO2 meter with Wifi against the coronavirus: The CO2 Easy&quot; - eMariete\" src=\"https:\/\/emariete.com\/medidor-casero-co2\/embed\/#?secret=emKnOZvZRR#?secret=Brhk5u5rGq\" data-secret=\"Brhk5u5rGq\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">The rest of the article, from here on, is of no importance. I have written it simply so that if you want to set up a meter with the MQ-135 sensor to waste your time and money, you will know how to do it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-materiales-necesarios\">Materials needed<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To mount the MQ-135 sensor meter you will need the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>1 Sensor called MQ-135 which is worthless.<\/li>\n\n\n\n<li>1 Arduino<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">As I don't want you to build this meter (have you already read why?), I'm not going to give you the schematic here. You will have to look it up yourself on the internet.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Sensor-MQ-135.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"666\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Sensor-MQ-135.jpg\" alt=\"\" class=\"wp-image-237947\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Sensor-MQ-135.jpg 1000w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Sensor-MQ-135-300x200.jpg 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Sensor-MQ-135-768x511.jpg 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-codigo-para-arduino\">Code for Arduino<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Here is some code to use this sensor with the Arduino. In case you want to build the meter, really and despite my warnings, I recommend you to look for it because I don't even know if this one works.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: arduino; title: ; notranslate\" title=\"\">\n\/*\nLibrary Repository : https:\/\/github.com\/ckalpha\/MQ135\nAuthor : Damrongwit Nusuk\nEmail : jack@racksync.com\nWebsite : http:\/\/www.racksync.com\n*\/\n\n#include \"MQ135.h\"\n#define ANALOGPIN A0 \/\/ Define Analog PIN on Arduino Board\n#define RZERO 206.85 \/\/ Define RZERO Calibration Value\nMQ135 gasSensor = MQ135(ANALOGPIN);\n\nvoid setup()\n{\n  Serial.begin(9600);\n  float rzero = gasSensor.getRZero();\n  delay(3000);\n  Serial.print(\"MQ135 RZERO Calibration Value : \");\n  Serial.println(rzero);\n}\n\nvoid loop() {\n  float ppm = gasSensor.getPPM();\n  delay(1000);\n  digitalWrite(13,HIGH);\n  Serial.print(\"CO2 ppm value : \");\n  Serial.println(ppm);\n}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">You can find the page where this code is published in GitHub <a href=\"https:\/\/github.com\/smilexth\/MQ135-Arduino-Sensor\/tree\/master\/MQ135\" target=\"_blank\" rel=\"noreferrer noopener nofollow\"><s>here<\/s><\/a> (sorry, the author seems to have removed the repository).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-consejos-finales\">Final advice<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Of course, my only advice is to click below and build a proper CO\u2082 meter:<\/p>\n\n\n<div class=\"gb-container gb-container-6bf5d2c8\">\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-emariete wp-block-embed-emariete\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"Brhk5u5rGq\"><a href=\"https:\/\/emariete.com\/en\/carbon-gas-co2-meter\/\">A home CO2 meter with Wifi against the coronavirus: The CO2 Easy<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&quot;A home CO2 meter with Wifi against the coronavirus: The CO2 Easy&quot; - eMariete\" src=\"https:\/\/emariete.com\/medidor-casero-co2\/embed\/#?secret=emKnOZvZRR#?secret=Brhk5u5rGq\" data-secret=\"Brhk5u5rGq\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n<\/div><div class=\"essb_break_scroll\"><\/div>","protected":false},"excerpt":{"rendered":"<p>In this article I am going to tell you what you have to do to mount a CO2 meter with a MQ-135 (sic) sensor. An easy and cheap tutorial (it's free). I hope that, if you are reading this article, it is because you have thought about building an easy and cheap meter with a MQ-135 sensor and ... <a title=\"CO\u2082 Meter with MQ-135 sensor (Don&#039;t miss it, it&#039;s not what it looks like)\" class=\"read-more\" href=\"https:\/\/emariete.com\/en\/medidor-co2-sensor-mq-135\/\" aria-label=\"Read more about CO\u2082 Meter with MQ-135 Sensor (Don&#039;t miss it, it&#039;s not what it seems)\">Read more<\/a><\/p>","protected":false},"author":1,"featured_media":237949,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","_lmt_disableupdate":"no","_lmt_disable":"","footnotes":""},"categories":[16,17,18],"tags":[20,43,50],"class_list":["post-237944","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-medidor-co2","category-proyectos-arduino","category-sensores-de-co2","tag-arduino","tag-proyectos-arduino","tag-sensores"],"modified_by":"Mariete","uagb_featured_image_src":{"full":["https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Medidor-de-CO2-con-sensor-MQ-135.png",1620,912,false],"thumbnail":["https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Medidor-de-CO2-con-sensor-MQ-135-150x150.png",150,150,true],"medium":["https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Medidor-de-CO2-con-sensor-MQ-135-300x169.png",300,169,true],"medium_large":["https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Medidor-de-CO2-con-sensor-MQ-135-768x432.png",768,432,true],"large":["https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Medidor-de-CO2-con-sensor-MQ-135-1024x576.png",1024,576,true],"1536x1536":["https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Medidor-de-CO2-con-sensor-MQ-135-1536x865.png",1536,865,true],"2048x2048":["https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Medidor-de-CO2-con-sensor-MQ-135.png",1620,912,false],"trp-custom-language-flag":["https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Medidor-de-CO2-con-sensor-MQ-135.png",18,10,false]},"uagb_author_info":{"display_name":"Mariete","author_link":"https:\/\/emariete.com\/en\/author\/admin_xlyz052h\/"},"uagb_comment_info":3,"uagb_excerpt":"En este art\u00edculo te voy a decir qu\u00e9 es lo que tienes que hacer para montar un medidor de CO2 con un sensor MQ-135 (sic). Un tutorial f\u00e1cil y barato (es gratis). Espero que, si est\u00e1s leyendo este art\u00edculo, sea porque has pensado en construir un medidor f\u00e1cil y barato con un sensor MQ-135 y&hellip;","_links":{"self":[{"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/posts\/237944","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/comments?post=237944"}],"version-history":[{"count":4,"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/posts\/237944\/revisions"}],"predecessor-version":[{"id":241568,"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/posts\/237944\/revisions\/241568"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/media\/237949"}],"wp:attachment":[{"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/media?parent=237944"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/categories?post=237944"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/tags?post=237944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}