Replace DHT11 sensor with DHT22
This commit is contained in:
parent
8a61260bc0
commit
7bdf50a34f
|
@ -1,8 +1,8 @@
|
|||
* 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
|
||||
- Battery shield
|
||||
- 3.7V 1000mAh Lithium battery
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#include <Arduino.h>
|
||||
#include <DHT.h>
|
||||
|
||||
#define DHTTYPE DHT11
|
||||
#define DHTTYPE DHT22
|
||||
#define DHTPIN 4
|
||||
DHT dht(DHTPIN, DHTTYPE);
|
||||
|
||||
|
|
Loading…
Reference in New Issue