Connected Thermometer
This sensor displays on its OLED screen and publishes on MQTT the following information :
- temperature
- humidity
- CO2 concentration
I am not an expert in embedded system programming and C ++. This project was created for personal use and shared for educational purposes.
- ESP32 NodeMCU Module WLAN WiFi Dev Kit C Development Board
- DHT22 / AM2302 Temperature and humidity sensor
- MH-Z19C NDIR CO2 Sensor
- AZDelivery AZ-Touch Smart Home Kit de Montage Mural avec Écran Tactile TFT LCD de 2,4 Pouces, contrôleur Tactile SPI XPT2046
DHT22 | ESP32 |
---|---|
+ | 3.3V |
Out | IO32 |
- | GND |
MH-Z19C | ESP32 |
---|---|
VCC | 5V |
GND | GND |
TX | RX (IO16) |
RX | TX (IO17) |
- Visual Studio Code
- PlatformIO IDE for VSCode
Before uploading this program to your MCU, you need to set following configuration variables :
- WIFI_SSID
- WIFI_PASSWORD
-
MQTT_CLIENT_ID
-
MQTT_SERVER_IP
-
MQTT_SERVER_PORT
-
MQTT_USER
-
MQTT_PASSWORD
-
humidityMqttTopic
-
temperatureMqttTopic
-
co2MqttTopic
- Amael BERTEAU