DHT Sensor With ESP32

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

Hi,

Could you try with pin 16 instead of 35?

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

Yes exactly

Yes exactly

thanks, it worked :slight_smile: