Skip to content
/ mh_z19 Public

A simple arduino library for MH-Z19 by using SoftwareSerial

License

Notifications You must be signed in to change notification settings

jimms/mh_z19

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple arduino library for MH-Z19 by using SoftwareSerial

Example

#define CO2_PWM_PIN 5
#define CO2_UART_TX_PIN 9
#define CO2_UART_RX_PIN 10

MH_Z19 mhz19(CO2_PWM_PIN, CO2_UART_TX_PIN, CO2_UART_RX_PIN);

void setup() {
	// ...

	mhz19.setup();

	// ...
}

void loop(void) {
	// ...

	Serial1.println(mhz19.read_pwm_value());
	Serial1.println(mhz19.read_uart_value());

	// ...
}

Links

  1. MHZ19 Spec on Rev Space

About

A simple arduino library for MH-Z19 by using SoftwareSerial

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages