# CO2 Sensor MH-Z19B

**URL:** <https://forum.fritzing.org/t/co2-sensor-mh-z19b/33851>\
**Category:** parts help\
**Created:** [March 3, 2026, 7:16pm UTC](https://forum.fritzing.org/t/co2-sensor-mh-z19b/33851 "2026-03-03T19:16:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![aziiher](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/a/e9c0ed/32.png) [@aziiher](https://forum.fritzing.org/u/aziiher)\
**Post date:** [March 3, 2026, 7:16pm UTC](https://forum.fritzing.org/t/co2-sensor-mh-z19b/33851/1 "2026-03-03T19:16:08Z")

</div>

is there a MH-Z19B CO2 sensor? I) need it for my final exam and I can’t find it anywhere so if anyone has the file I would be grateful.Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Harald\_Rau](https://forum.fritzing.org/user_avatar/forum.fritzing.org/harald_rau/32/21072_2.png) [@Harald\_Rau](https://forum.fritzing.org/u/Harald_Rau)\
**Post date:** [March 4, 2026, 7:05am UTC](https://forum.fritzing.org/t/co2-sensor-mh-z19b/33851/2 "2026-03-04T07:05:17Z")

</div>

Good morning,

Is this the component you mean?

[MH-Z19B on Funduino](https://www.winsen-sensor.com/d/files/infrared-gas-sensor/mh-z19b-co2-ver1_0.pdf)

Regards, Harald!

---

<div class="post-metadata">

**Author:** ![aziiher](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/a/e9c0ed/32.png) [@aziiher](https://forum.fritzing.org/u/aziiher)\
**Post date:** [March 4, 2026, 9:03am UTC](https://forum.fritzing.org/t/co2-sensor-mh-z19b/33851/3 "2026-03-04T09:03:53Z")

</div>

yess it is. does this component exist as a fritzing file?

---

<div class="post-metadata">

**Author:** ![Harald\_Rau](https://forum.fritzing.org/user_avatar/forum.fritzing.org/harald_rau/32/21072_2.png) [@Harald\_Rau](https://forum.fritzing.org/u/Harald_Rau)\
**Post date:** [March 4, 2026, 11:44am UTC](https://forum.fritzing.org/t/co2-sensor-mh-z19b/33851/4 "2026-03-04T11:44:29Z")

</div>

Unfortunately not…

It would have to be replicated. I found a diagram for it.

[MH-Z19B](https://docs.nanoframework.net/devicesdetails/Mhz19b/README.html#documentation)

I could start on the diagram, but that would take a while…

Regards, Harald!

---

<div class="post-metadata">

**Author:** ![Harald\_Rau](https://forum.fritzing.org/user_avatar/forum.fritzing.org/harald_rau/32/21072_2.png) [@Harald\_Rau](https://forum.fritzing.org/u/Harald_Rau)\
**Post date:** [March 4, 2026, 4:20pm UTC](https://forum.fritzing.org/t/co2-sensor-mh-z19b/33851/5 "2026-03-04T16:20:15Z")

</div>

@RAPTOR7762 can I use the two files as a basis and continue working on that part?

![MH-Z19_breadboard](https://forum.fritzing.org/uploads/default/original/3X/4/8/488938a6dd83b853008d096baab57840684475be.svg)

![MH-Z19_pcb](https://forum.fritzing.org/uploads/default/original/3X/3/2/32e0d076f338549a093a18c2b69be348c81ee60a.svg)

…or do they contain errors?

Regards, Harald!

---

<div class="post-metadata">

**Author:** ![RAPTOR7762](https://forum.fritzing.org/user_avatar/forum.fritzing.org/raptor7762/32/22620_2.png) [@RAPTOR7762](https://forum.fritzing.org/u/RAPTOR7762)\
**Post date:** [March 4, 2026, 4:31pm UTC](https://forum.fritzing.org/t/co2-sensor-mh-z19b/33851/6 "2026-03-04T16:31:49Z")

</div>

Hi @Harald_Rau fixed them

![pcb](https://forum.fritzing.org/uploads/default/original/3X/a/3/a39c400f9ad9e2df22b7a3a2fb49a08181d19ee0.svg)  
 ![bb](https://forum.fritzing.org/uploads/default/original/3X/d/0/d00d1a68bc5bc92ec5ec3b9830098a4d852479f9.svg)

In breadboard view, your first 5 pins were inverted, next 4 missing. Corrected and replaced them above

---

<div class="post-metadata">

**Author:** ![Harald\_Rau](https://forum.fritzing.org/user_avatar/forum.fritzing.org/harald_rau/32/21072_2.png) [@Harald\_Rau](https://forum.fritzing.org/u/Harald_Rau)\
**Post date:** [March 4, 2026, 5:14pm UTC](https://forum.fritzing.org/t/co2-sensor-mh-z19b/33851/7 "2026-03-04T17:14:12Z")

</div>

Ok, thanks.

I’ll read through your tutorial first…

---

<div class="post-metadata">

**Author:** ![Harald\_Rau](https://forum.fritzing.org/user_avatar/forum.fritzing.org/harald_rau/32/21072_2.png) [@Harald\_Rau](https://forum.fritzing.org/u/Harald_Rau)\
**Post date:** [March 4, 2026, 6:01pm UTC](https://forum.fritzing.org/t/co2-sensor-mh-z19b/33851/8 "2026-03-04T18:01:24Z")

</div>

So, with your two parts and the Inkscape extension, it worked quite well.  
Unfortunately, the original part has no visible labeling. I could put the connector labels on the housing?  
However, when you hover the mouse over the connector, the label is displayed.  
I hope no major errors have crept in.

[MH-Z19B.fzpz](https://forum.fritzing.org/uploads/short-url/1QIcmtQceulNsc2jQXGQysdBdLV.fzpz) (9,5 KB)

Regards, Harald!

---

<div class="post-metadata">

**Author:** ![Harald\_Rau](https://forum.fritzing.org/user_avatar/forum.fritzing.org/harald_rau/32/21072_2.png) [@Harald\_Rau](https://forum.fritzing.org/u/Harald_Rau)\
**Post date:** [March 5, 2026, 7:42am UTC](https://forum.fritzing.org/t/co2-sensor-mh-z19b/33851/9 "2026-03-05T07:42:34Z")

</div>

@RAPTOR7762 I’ve made some further improvements. However, I did the merging with the Parts Editor in Fritzing.  
It seems to work, but the editor does alter the SVG files a bit.

[Beispiel.fzz](https://forum.fritzing.org/uploads/short-url/miBtjRbRk1bwZnP9NTvJxWdEHBU.fzz) (14,8 KB)

[MH-Z19B.fzpz](https://forum.fritzing.org/uploads/short-url/vqjIrILXHd2f8KMx8nAphFcLlvS.fzpz) (9,5 KB)

Regards, Harald!
