- NodeMCU
- DHT11 sensor
- Breadboard
Variable | Default value | Description |
---|---|---|
DHT_PIN | D2 | Digital pin where is connected the data sensor output |
DHTTYPE | DHT11 | Sensor version |
DELAY | 5000 | Milliseconds between reading |
Project with Platform IO programmed in C++ with DHT-11 humidity and temperature sensor.
C++
Variable | Default value | Description |
---|---|---|
DHT_PIN | D2 | Digital pin where is connected the data sensor output |
DHTTYPE | DHT11 | Sensor version |
DELAY | 5000 | Milliseconds between reading |