MhZ19 
A Elixir library to retrieve CO2 concentration value from MH-Z19 sensor.
Installation
If available in Hex, the package can be installed
by adding mh_z19 to your list of dependencies in mix.exs:
def deps do
[
{:mh_z19, "~> 0.1.0"}
]
endUsage
iex> {:ok, pid} = MhZ19.start_link
{:ok, #PID<0.1104.0>}
iex> {:ok, result} = MhZ19.measure(pid)
{:ok, %{co2_concentration: 650}}References
- Intelligent Infrared CO2 Module (Model: MH-Z19) User’s Manual (Version: 1.0)
- Elixir × Nerves で MH-Z19 を動かす (in Japanese)
- mh-z19 · PyPI
Author
Kentaro Kuribayashi