You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here:
......
#ifdef USE_DHT
// Install "DHT sensor library" if you get an error
#include <DHT.h>
// Change D3 to the pin you've connected your sensor to
//#define DHTPIN D3
#define DHTPIN 2
......
Defining the pin will not always include the "D". ("That's what she said.")
For a generic ESP8266 (ESP-01), you'll need to define the pin as a number as per above.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Here:
......
#ifdef USE_DHT
// Install "DHT sensor library" if you get an error
#include <DHT.h>
// Change D3 to the pin you've connected your sensor to
//#define DHTPIN D3
#define DHTPIN 2
......
Defining the pin will not always include the "D". ("That's what she said.")
For a generic ESP8266 (ESP-01), you'll need to define the pin as a number as per above.
Beta Was this translation helpful? Give feedback.
All reactions