DHT22 and WT32-ETH01

Hi all,
I’m configuring WT32-ETH01 with DHT22 and I got it working by using GPIO15

esphome:
  name: room-matrimoniale-esp
  
esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
  password: "asdfasdfasdfasdfasdf"

ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO0_IN
  phy_addr: 1
  power_pin: GPIO16


sensor:
  - platform: dht
    pin: GPIO15
    model: DHT22_TYPE2
    temperature:
      name: "Room ESP Matrimoniale Temperature"
    humidity:
      name: "Room ESP Matrimoniale Humidity"
    update_interval: 60s

Unfortunately, in a room I need to use 8 pins to control relays so, I tried connecting DHT22 to GPIO36 (input only) but it doesn’t work.

sensor:
  - platform: dht
    pin: GPIO36
    model: DHT22_TYPE2
    temperature:
      name: "Room ESP Matrimoniale Temperature"
    humidity:
      name: "Room ESP Matrimoniale Humidity"
    update_interval: 60s

Any idea why I can’t use that GPIO?
What GPIOs can I use for:

  • 1 DHT22
  • 8 switches (8 relays)

Thanks!

According to the datasheet, the esp sends a signal to initiate comms

When MCU send start signal, DHT22 change from low-power-consumption-mode to running-mode. When MCU finishs sending the start signal, DHT22 will send response signal of 40-bit data that reflect the relative humidity

So I can’t connect it to a “input only” pin because even though I use it to read from a sensor, the communication is bidirectional.
Thanks!

To use dht22, the pin used is gpio32 cfg