All Projects → jehy → arduino-esp8266-mh-z19-serial

jehy / arduino-esp8266-mh-z19-serial

Licence: BSD-2-Clause License
CO2, humidity and temperature sensor on ESP8266

Programming Languages

C++
36643 projects - #6 most used programming language
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to arduino-esp8266-mh-z19-serial

embedded-sht
Embedded SHT Drivers for Sensirion Temperature and Humidity Sensors - Download the Zip Package from the Release Page
Stars: ✭ 53 (-7.02%)
Mutual labels:  temperature, temperature-sensor, humidity
homebridge-tion
Homebridge plugin to control Tion breezers
Stars: ✭ 32 (-43.86%)
Mutual labels:  temperature, humidity, co2
EnviroMonitorStation
Arduino compatible software for ESP8266 based environmental monitoring station. Includes temperature, humidity, barometric pressure and PM2.5, PM10 dust monitoring
Stars: ✭ 71 (+24.56%)
Mutual labels:  esp8266, temperature, humidity
MH-Z-CO2-Sensors
Arduino imeplementation for CO2 sensors of the MH-Z series (Intelligent Infrared CO2 Module)
Stars: ✭ 59 (+3.51%)
Mutual labels:  co2, mh-z19
avr-ds18b20
AVR library for controlling DS18B20 temperature sensors
Stars: ✭ 52 (-8.77%)
Mutual labels:  temperature, temperature-sensor
SHT31
Arduino library for the SHT31 temperature and humidity sensor
Stars: ✭ 26 (-54.39%)
Mutual labels:  temperature, humidity
arduino-bme280
💧 Arduino library for Bosch Sensortec BME280 – combined temperature, pressure, humidity sensor. The library allows using the sensor over I2C or SPI on any board that supports Arduino.
Stars: ✭ 25 (-56.14%)
Mutual labels:  temperature, humidity
sht31
sht31 full function driver
Stars: ✭ 28 (-50.88%)
Mutual labels:  temperature, humidity
Devices
All the Candle Arduino code
Stars: ✭ 18 (-68.42%)
Mutual labels:  temperature, humidity
esp8266 homekit temp
Small project to send data from a temperature sensor connected to an esp8266 to a HomeKit server, running on a Raspberry Pi.
Stars: ✭ 38 (-33.33%)
Mutual labels:  esp8266, temperature-sensor
ESPHome-Air-Quality-Monitor
ESPHome configuration for a DIY indoor air quality monitor for CO₂ concentration, PM2.5 and PM10 concentrations, and temperature, humidity and pressure
Stars: ✭ 42 (-26.32%)
Mutual labels:  esp8266, co2
WemosD1 HomeMatic RFID
RFID Reader integration for HomeMatic house automation
Stars: ✭ 18 (-68.42%)
Mutual labels:  esp8266, wemos
n2d
An easy to use ESP8266 flash tool with built-in support for the Deauther Project.
Stars: ✭ 136 (+138.6%)
Mutual labels:  esp8266, wemos
BME680
Arduino Library to access the Bosch BME680 - temperature, pressure, humidity and gas sensor
Stars: ✭ 30 (-47.37%)
Mutual labels:  temperature, humidity
coro2sens
Build a simple device that warns if CO₂ concentration in a room becomes a risk for COVID-19 aerosol infections.
Stars: ✭ 32 (-43.86%)
Mutual labels:  esp8266, co2
ioTank
Indoor environment monitor based on Esp8266
Stars: ✭ 15 (-73.68%)
Mutual labels:  temperature, humidity
micropython-am2320
MicroPython driver for the Aosong AM2320 temperature and humidity sensor
Stars: ✭ 22 (-61.4%)
Mutual labels:  temperature, humidity
Onewirehub
OneWire slave device emulator
Stars: ✭ 195 (+242.11%)
Mutual labels:  esp8266, temperature
Weather Shield
Barometric pressure, temperature, humidity and light sensing weather shield for Arduino.
Stars: ✭ 62 (+8.77%)
Mutual labels:  temperature, humidity
TempRa
Monitors the temperature, the humidity and the pressure in your room on Raspberry Pi.
Stars: ✭ 16 (-71.93%)
Mutual labels:  temperature, humidity

Arduino esp8266 mh-z19 serial

Build Status Donate License

CO2, humidity and temperature sensor on ESP8266 with mh-z19 co2 sensor and dht-22 temperature and humidity sensor.

You can either use custom backed server to receive data in JSON or build in MQTT client to publish data to MQTT server.

sensor sample

You can use project https://github.com/jehy/co2-online-display as backend to this program. See full description on https://geektimes.ru/post/270958/ (you can use Google translate from Russian).

Compilation

All required libraries can be installed with Arduino IDE:

Via console:

arduino --pref "boardsmanager.additional.urls=http://arduino.esp8266.com/stable/package_esp8266com_index.json" --save-prefs
arduino --install-library "ArduinoJson:6.14.1"
arduino --install-library "Adafruit Unified Sensor:1.1.2"
arduino --install-library "DHT sensor library:1.3.8"
arduino --install-library "LiquidCrystal I2C:1.1.2"
arduino --install-library "PubSubClient:2.8.0"
arduino --install-boards esp8266:esp8266

cp settings.sample.h settings.h # EDIT AFTER COPY!

arduino --verify --board esp8266:esp8266:d1:CpuFrequency=80,FlashSize=4M3M arduino-esp8266-mh-z19-serial.ino

Manually:

  1. Copy file settings.sample.h to settings.h and specify your settings;
  2. Install Adafruit Unified Sensor version 1.1.2;
  3. Install DHT sensor library version 1.3.8;
  4. Install ArduinoJson library v 6.14.1;
  5. Install LiquidCrystal_I2C library v 1.1.2;
  6. Compile and upload your sketch;
  7. Enjoy!

For Wemos D1, before compiling sketch:

  1. Add http://arduino.esp8266.com/stable/package_esp8266com_index.json to additional boards in preferences;
  2. Select wemos D1 (or your other board) in boards manager and install it.

MQTT with Home Assistant

You can use config which looks like this:

sensor:
  - platform: mqtt
    unique_id: esp-terrace-co2
    name: "ESP terrace CO2"
    state_topic: "esp/terrace/co2"
    qos: 0
    unit_of_measurement: "ppm"

  - platform: mqtt
    unique_id: esp-terrace-humidity
    name: "ESP terrace Humidity"
    state_topic: "esp/terrace/humidity"
    qos: 0
    unit_of_measurement: "%"

  - platform: mqtt
    unique_id: esp-terrace-temperature
    name: "ESP terrace Temperature"
    state_topic: "esp/terrace/temperature"
    qos: 0
    unit_of_measurement: "ºC"
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].