Skip to content

Latest commit

 

History

History
22 lines (22 loc) · 452 Bytes

README.md

File metadata and controls

22 lines (22 loc) · 452 Bytes

MHZ16-CO2-sensor

Arduino library for MH-Z16 CO2 sensor bases on SoftwareSerail library.

Functions

Mhz16()

Create an instance of a Mhz16 object.

Mhz16 mhz16(rx_pin, tx_pin);

begin()

Start Mhz16 object.

mhz16.begin(9600);

readGasConcentration()

Return co2 concentration value.

int co2 = mhz16.readGasConcentration();

calibrateZeroPoint()

mhz16.calibrateZeroPoint()