DHT22 and ESP-12E
Posted: Fri Jul 27, 2018 3:11 pm
I posted something, but it seems it went to void, so I'll try again.
Hi,
I have an ESP-12E nodeMCU ver 3.0 to replace my arduino nano and esp01 for a temperature project. I am able to compile fine and turn and LED
ON and OFF, but when I try to read from a DHT22, I get "nan" in the serial output.
I read somewhere that the pins on the module are messed up or something. I found the info below, but I am not sure
whether D0 means pin D0 on the board or D0 in the software. Can someone please clarify
static const uint8_t D0 = 16;
static const uint8_t D1 = 5;
static const uint8_t D2 = 4;
static const uint8_t D3 = 0;
static const uint8_t D4 = 2;
static const uint8_t D5 = 14;
static const uint8_t D6 = 12;
static const uint8_t D7 = 13;
static const uint8_t D8 = 15;
static const uint8_t D9 = 3;
static const uint8_t D10 = 1;
Hi,
I have an ESP-12E nodeMCU ver 3.0 to replace my arduino nano and esp01 for a temperature project. I am able to compile fine and turn and LED
ON and OFF, but when I try to read from a DHT22, I get "nan" in the serial output.
I read somewhere that the pins on the module are messed up or something. I found the info below, but I am not sure
whether D0 means pin D0 on the board or D0 in the software. Can someone please clarify
static const uint8_t D0 = 16;
static const uint8_t D1 = 5;
static const uint8_t D2 = 4;
static const uint8_t D3 = 0;
static const uint8_t D4 = 2;
static const uint8_t D5 = 14;
static const uint8_t D6 = 12;
static const uint8_t D7 = 13;
static const uint8_t D8 = 15;
static const uint8_t D9 = 3;
static const uint8_t D10 = 1;