DHT Sensor With ESP32

resolved

#1

Hi,

I am trying to connect a DHT11 sensor to ESP32 Board,
in the configure file there is pin number for this board (DHT_RECEIVER_PIN 35).
i have esp32 devkitv1 board and i connect the data pin of the DHT to GPIO 35 , but it is look that this pin is not the right one (in the terminal i have an error "Failed to read from DHT sensor!
"), any help from someone please

Thanks


#2

Hi,

Could you try with pin 16 instead of 35?


#3

to change the line to “DHT_RECEIVER_PIN 16” and connect the DHT11 to GPIO16?


#4

Yes exactly

Yes exactly


#5

thanks, it worked :slight_smile: