Detect Air quality ,humidity , temperature and calculation comfort level.
- i2c kernel documentation
- Official SHT31 c++ library for Arduino
- SHT31 manufacturer data sheet
- KQM2801AI c library for Raspberry PI
- KQM2801AI data sheet
This sh131 implimentation depends on i2c dev lib
- sudo apt-get install libi2c-dev
Below is also a good one to have while debugging, but be careful i2cdump from the below cause the sht31 interface to become unstable for me and requires a hard-reset to recover correctly.
- sudo apt-get install i2c-tools
Download lcdi2c library
install pip and line-bot-sdk for Line bot
- wget https://bootstrap.pypa.io/get-pip.py
- python2 get-pip.py
- pip install line-bot-sdk
- make will output AirBox execute file.
put AirBox and lcdi2c in the same place.
- ./AirBox
- ──────────────────
- ∣ 25°C 49% 10.6PP ∣
- ∣ Comfo ok Bad ∣
- ──────────────────
Explain:
- 25°C ← Temperature
- 49% ← Humidity
- 10.6PP ← PPM
- Comfo ← Comfort level
- ok ← Humidity level
- Bad ← Air quality