Node available but entities not available?

I added a new node to my installation, and although I can upload the code (flashing and OTA), the entities are not available :man_shrugging:

Here’s the code for the node:

esphome:
  name: alacena1
  platform: ESP8266
  board: esp01_1m

wifi:
  networks:
  - ssid: "soldanet"
    password: "PASSW"
    priority: 10.0
  - ssid: "soldanet2"
    password: "PASSW"
    priority: 20.0

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Alacena Fallback Hotspot"
    password: "PASSW"

captive_portal:

# Enable logging
logger:
  level: VERBOSE

# Enable Home Assistant API
api:

ota:

sensor:
  - platform: dht
    pin: 0
    model: DHT11
    temperature:
      name: "Temperatura alacena"
      accuracy_decimals: 1
      #filters:
      #- offset: -0.5    
    humidity:
      name: "Humedad alacena"
      filters:
      - median:
          window_size: 5
          send_every: 4
          send_first_at: 3

switch:
  - platform: gpio
    pin: 2
    id: rele_alacena
    name: "Extractor alacena"
    on_turn_on:
    - delay: 500ms
    - switch.turn_off: rele_alacena

And the logs:

INFO Reading configuration /config/esphome/alacena1.yaml...
INFO Starting log output from alacena1.local using esphome API
INFO Connecting to alacena1.local:6053 (192.168.1.247)
INFO Successfully connected to alacena1.local
[13:54:12][I][app:105]: ESPHome version 1.18.0 compiled on May 28 2021, 11:42:42
[13:54:12][C][wifi:443]: WiFi:
[13:54:12][C][wifi:303]:   SSID: [redacted]
[13:54:12][C][wifi:304]:   IP Address: 192.168.1.247
[13:54:12][C][wifi:306]:   BSSID: [redacted]
[13:54:12][C][wifi:307]:   Hostname: 'alacena1'
[13:54:12][C][wifi:311]:   Signal strength: -73 dB ▂▄▆█
[13:54:12][V][wifi:313]:   Priority: 20.0
[13:54:12][C][wifi:315]:   Channel: 10
[13:54:12][C][wifi:316]:   Subnet: 255.255.255.0
[13:54:12][C][wifi:317]:   Gateway: 192.168.1.1
[13:54:12][C][wifi:318]:   DNS1: 192.168.1.10
[13:54:12][C][wifi:319]:   DNS2: 1.1.1.1
[13:54:12][C][switch.gpio:042]: GPIO Switch 'Extractor alacena'
[13:54:12][C][switch.gpio:043]:   Pin: GPIO2 (Mode: OUTPUT)
[13:54:12][C][switch.gpio:059]:   Restore Mode: Restore (Defaults to OFF)
[13:54:12][C][logger:189]: Logger:
[13:54:12][C][logger:190]:   Level: VERBOSE
[13:54:12][C][logger:191]:   Log Baud Rate: 115200
[13:54:12][C][logger:192]:   Hardware UART: UART0
[13:54:12][C][dht:017]: DHT:
[13:54:12][C][dht:018]:   Pin: GPIO0 (Mode: INPUT)
[13:54:12][C][dht:022]:   Model: DHT11
[13:54:12][C][dht:027]:   Update Interval: 60.0s
[13:54:12][C][dht:029]:   Temperature 'Temperatura alacena'
[13:54:12][C][dht:029]:     Device Class: 'temperature'
[13:54:12][C][dht:029]:     Unit of Measurement: '°C'
[13:54:12][C][dht:029]:     Accuracy Decimals: 1
[13:54:12][C][dht:030]:   Humidity 'Humedad alacena'
[13:54:12][C][dht:030]:     Device Class: 'humidity'
[13:54:12][C][dht:030]:     Unit of Measurement: '%'
[13:54:12][C][dht:030]:     Accuracy Decimals: 0
[13:54:12][C][captive_portal:169]: Captive Portal:
[13:54:12][C][ota:029]: Over-The-Air Updates:
[13:54:12][C][ota:030]:   Address: alacena1.local:8266
[13:54:12][C][api:095]: API Server:
[13:54:12][C][api:096]:   Address: alacena1.local:6053
[13:54:21][W][dht:162]: Requesting data from DHT failed!
[13:54:21][W][dht:060]: Invalid readings! Please check your wiring (pull-up resistor, pin number).
[13:54:21][V][sensor:013]: 'Temperatura alacena': Received new state nan
[13:54:21][D][sensor:099]: 'Temperatura alacena': Sending state nan °C with 1 decimals of accuracy
[13:54:21][V][sensor:013]: 'Humedad alacena': Received new state nan

As you might notice, the DHT11 sensor is not even sending the readings.

This is the schematic for the board:

Any idea or suggestion will be greatly appreciated.