Sensor causes IP connection error

Hi, I have configured ESPHome on ESP32 device. I have connected 3 sensors to it. SGP4x, LD2420 and DHT22. I have compiled and uploaded the firmware successfully. Everything works fine when all but DHT22 sensor is connected. After I connect DHT22, the device throws an API error and is unable to connect to Home Assistant

INFO ESPHome 2024.2.2
INFO Reading configuration /config/esphome/esphome-web-05ada8.yaml...
INFO Starting log output from 192.168.3.236 using esphome API
WARNING Can't connect to ESPHome API for esphome-web-05ada8 @ 192.168.3.236: Error connecting to [AddrInfo(family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 1>, proto=6, sockaddr=IPv4Sockaddr(address='192.168.3.236', port=6053))]: [Errno 113] Connect call failed ('192.168.3.236', 6053) (SocketAPIError)
INFO Trying to connect to esphome-web-05ada8 @ 192.168.3.236 in the background

And which GPIOs did you use?

14 for DHT22
i2c:
sda: 21
scl: 22
scan: true
id: bus_a

uart:
id: ld2420_uart
tx_pin: GPIO17
rx_pin: GPIO16

Do you have esphome updated to the latest?

Post your code and maybe someone can help, everything looks ok to me.

yes, it is latest.
here is my code

esphome:
  name: esphome-web-05ada8
  friendly_name: aadmultisensor1

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "1JjxDwqfisZDAH1oo+k7jUlnpC6cCClXwNci2XAESE4="

ota:

i2c:
  sda: 21
  scl: 22
  scan: true
  id: bus_a
  
uart:
  id: ld2420_uart
  tx_pin: GPIO17
  rx_pin: GPIO16
  baud_rate: 115200
  parity: NONE
  stop_bits: 1  
  
# Example configuration entry
ld2420:

text_sensor:
  - platform: ld2420
    fw_version:
      name: LD2420 Firmware

sensor:
  - platform: ld2420
    moving_distance:
      name : Moving Distance

  - platform: dht
    model: DHT22
    pin: GPIO14
    temperature:
      name: "Room Temperature"
      id: roomtemp
    humidity:
      name: "Room Humidity"
      id: roomhum
    update_interval: 60s
    
  - platform: sgp4x
    voc:
      name: "VOC Index"
    compensation:
      humidity_source: roomtemp
      temperature_source: roomhum          

binary_sensor:
  - platform: ld2420
    has_target:
      name: Presence
      
  
select:
  - platform: ld2420
    operating_mode:
      name: Operating Mode

number:
  - platform: ld2420
    presence_timeout:
      name: Detection Presence Timeout
    min_gate_distance:
      name: Detection Gate Minimum
    max_gate_distance:
      name: Detection Gate Maximum
    # See "Number" section below for detail
    gate_select:
      name: Select Gate to Set
    still_threshold:
      name: Set Still Threshold Value
    move_threshold:
      name: Set Move Threshold Value

button:
  - platform: ld2420
    apply_config:
      name: Apply Config
    factory_reset:
      name: Factory Reset
    restart_module:
      name: Restart Module
    revert_config:
      name: Undo Edits      


wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Esphome-Web-05Ada8"
    password: "RPCFOqoXC30e"

captive_portal: