diff --git a/source/_components/sensor.mhz19.markdown b/source/_components/sensor.mhz19.markdown index 5acbe55ce58..ec41066177a 100644 --- a/source/_components/sensor.mhz19.markdown +++ b/source/_components/sensor.mhz19.markdown @@ -17,6 +17,8 @@ The MH-Z19 is a small non-dispersive infrared sensor that can measure CO2 level. Check out the [Open Home Automation web site](https://www.open-homeautomation.com/2016/08/24/monitor-co2-levels-in-your-house/) for a quick guide how to connect the sensor to your PC or Raspberry Pi. +**Note:** the new version MH-Z19B requires the VIN to be connected to a 5V pin, rather than 3.3V. + ## {% linkable_title Configuration %} To use this sensor in your installation, add the following to your `configuration.yaml` file: @@ -44,3 +46,21 @@ sensor: - co2 - temperature ``` + +## {% linkable_title Raspberry Pi 3(+) GPIO UART and Hass.io %} + +To directly connect the sensor on the GPIO pins of a RPi, first append the following to `config.txt` in the boot directory: + +```text +enable_uart=1 +``` + +Then (after a reboot): you can setup the sensor using: + +```yaml + serial_device: /dev/tty.S0 +``` + +## {% linkable_title Calibration %} + +The MH-Z19B version of the sensor has Automatic Baseline Calibration enabled by default, which will calibrate the 400PPM level to the lowest measured PPM in the last 24h cycle. Currently the component does not allow turning this functionaly off.