Replace DHT11 sensor with DHT22

This commit is contained in:
coolneng 2023-04-20 13:26:41 +02:00
parent 8a61260bc0
commit 7bdf50a34f
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
2 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,8 @@
* Homeostasis * Homeostasis
Temperature, air humidity and soil humidity sensor that communicates via MQTT. The project is implemented using a Wemos D1 mini board with the following addons: Temperature, air humidity and soil humidity sensor that communicates via MQTT. The project is implemented using a Wemos D1 mini board with the following components:
- DHT11 temperature and humidity sensor - DHT22 temperature and humidity sensor
- FC-28 soil hygrometer sensor - FC-28 soil hygrometer sensor
- Battery shield - Battery shield
- 3.7V 1000mAh Lithium battery - 3.7V 1000mAh Lithium battery

View File

@ -3,7 +3,7 @@
#include <Arduino.h> #include <Arduino.h>
#include <DHT.h> #include <DHT.h>
#define DHTTYPE DHT11 #define DHTTYPE DHT22
#define DHTPIN 4 #define DHTPIN 4
DHT dht(DHTPIN, DHTTYPE); DHT dht(DHTPIN, DHTTYPE);