NanoPI CO2 Sensor hat is a expansion board which has the same dimension as that of a NanoPi NEO/Air and can be stacked on:
Contains MH-Z19B, SI7021 and PCB 2.4GHz antenna.
- MH-Z19B sensor | AliExpress | Datasheet
MH-Z19B NDIR infrared gas module is a common type, small size sensor, using non-dispersive infrared (NDIR) principle to detect the existence of CO 2 in the air, with good selectivity, non-oxygen dependent and long life. Built-in temperature compensation; and it has UART output and PWM output. It is developed by the tight integration of mature infrared absorbing gas detection technology, precision optical circuit design and superior circuit design
- SI7021 sensor| AliExpress | Datasheet
The Si7021 I2C Humidity and Temperature Sensor is a monolithic CMOS IC integrating humidity and temperature sensor elements, an analog-to-digital converter, signal processing, calibration data, and an I2C Interface. The patented use of industry-standard, low-K polymeric dielectrics for sensing humidity enables the construction of low-power, monolithic CMOS Sensor ICs with low drift and hysteresis, and excellent long term stability.
apt install python3-pip
- install additional modules for bluepy
sudo apt-get install libglib2.0-dev python3-dev
- Install Python modules
pip3 install setuptools wheel bluepy smbus si7021 mh-z19 paho-mqtt
- Install MQTT Gate script
tion.mqtt.py
- Create service
...
6 PROFIT!
If this project help you, you can give me a cup of coffee | beer | vodka :)