Skip to content

overflo23/MH-Z19_MicroPython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

MH-Z19 CO2 Sensor from Winsen

MH-Z19B + MH-Z19C driver for MicroPython

This library implements a simple class to get data from the MH-Z19 Sensors

It will tell you

  • PPM
  • Room temperature (not very accurate) - not documented in Module Datasheet
  • CO2 Status (whatever that is) - Neither documented in Module Datasheet

Author: Florian "overflo" Bittner - 12/2020

Projects

Twitter

Github

Version 0.1

License MIT

Some hints taken from: https://github.com/nara256/mhz19_uart/blob/master/src/MHZ19_uart.cpp

USE LIKE:

import mhz19

#init sensor on UART #1
sensor = mhz19.mhz19(1)

#update data from sensor
sensor.get_data()

print('ppm:',    sensor.ppm)
print('temp:',   sensor.temp)
print('status:', sensor.co2status)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages