Two DHT22 sensors in a single nodemcu, it doesn't work

Hello everyone.
Excuse my English, it is made with google translator.
I have installed two sensors with the data on different pins, but only one of them reads me, the first one.
The cables and sensors are perfect.
I do not know what I’m doing wrong.
Is this possible to do ?
Thank you very much

sensor:
  - platform: dht
    pin: D2
    temperature:
      name: "Temperatura-02"
    humidity:
      name: "Humedad-02"
    update_interval: 60s
  - platform: dht
    pin: D6
    temperature:
      name: "Temperatura-03"
    humidity:
      name: "Humedad-03"
    update_interval: 55s

Try specifying the model option. Autodetect (default) is a bit unreliable.

Thanks for the help, you learn a lot…
Something is still wrong, I don’t know if I’ve done it right.

I have observed.
model error detected, second sensor

[18:27:43][C][dht:020]:   Auto-detected model: DHT22
[18:27:43][C][dht:027]:   Update Interval: 60.0s
[18:27:43][C][dht:029]:   Temperature 'Temperatura-02'
[18:27:43][C][dht:029]:     Device Class: 'temperature'
[18:27:43][C][dht:029]:     State Class: 'measurement'
[18:27:43][C][dht:029]:     Unit of Measurement: '°C'
[18:27:43][C][dht:029]:     Accuracy Decimals: 1
[18:27:43][C][dht:030]:   Humidity 'Humedad-02'
[18:27:43][C][dht:030]:     Device Class: 'humidity'
[18:27:43][C][dht:030]:     State Class: 'measurement'
[18:27:43][C][dht:030]:     Unit of Measurement: '%'
[18:27:43][C][dht:030]:     Accuracy Decimals: 0
[18:27:43][C][dht:017]: DHT:
[18:27:43][C][dht:018]:   Pin: GPIO12
[18:27:43][C][dht:020]:   Auto-detected model: DHT11
[18:27:43][C][dht:027]:   Update Interval: 55.0s
[18:27:43][C][dht:029]:   Temperature 'Temperatura-03'
[18:27:43][C][dht:029]:     Device Class: 'temperature'
[18:27:43][C][dht:029]:     State Class: 'measurement'
[18:27:43][C][dht:029]:     Unit of Measurement: '°C'
[18:27:43][C][dht:029]:     Accuracy Decimals: 1
[18:27:43][C][dht:030]:   Humidity 'Humedad-03'
[18:27:43][C][dht:030]:     Device Class: 'humidity'
[18:27:43][C][dht:030]:     State Class: 'measurement'
[18:27:43][C][dht:030]:     Unit of Measurement: '%'
[18:27:43][C][dht:030]:     Accuracy Decimals: 0

Specifying model dht22

sensor:
  - platform: dht
    model: DHT22
    pin: D2
    temperature:
      name: "Temperatura-02"
    humidity:
      name: "Humedad-02"
    update_interval: 60s
  - platform: dht
    model: DHT22
    pin: D6
    temperature:
      name: "Temperatura-03"
    humidity:
      name: "Humedad-03"
    update_interval: 55s

detected model

[18:34:00][C][dht:017]: DHT:
[18:34:00][C][dht:018]:   Pin: GPIO4
[18:34:00][C][dht:024]:   Model: DHT22 (or equivalent)
[18:34:00][C][dht:027]:   Update Interval: 60.0s
[18:34:00][C][dht:029]:   Temperature 'Temperatura-02'
[18:34:00][C][dht:029]:     Device Class: 'temperature'
[18:34:00][C][dht:029]:     State Class: 'measurement'
[18:34:00][C][dht:029]:     Unit of Measurement: '°C'
[18:34:00][C][dht:029]:     Accuracy Decimals: 1
[18:34:00][C][dht:030]:   Humidity 'Humedad-02'
[18:34:00][C][dht:030]:     Device Class: 'humidity'
[18:34:00][C][dht:030]:     State Class: 'measurement'
[18:34:00][C][dht:030]:     Unit of Measurement: '%'
[18:34:00][C][dht:030]:     Accuracy Decimals: 0
[18:34:00][C][dht:017]: DHT:
[18:34:00][C][dht:018]:   Pin: GPIO12
[18:34:00][C][dht:024]:   Model: DHT22 (or equivalent)
[18:34:00][C][dht:027]:   Update Interval: 55.0s
[18:34:00][C][dht:029]:   Temperature 'Temperatura-03'
[18:34:00][C][dht:029]:     Device Class: 'temperature'
[18:34:00][C][dht:029]:     State Class: 'measurement'
[18:34:00][C][dht:029]:     Unit of Measurement: '°C'
[18:34:00][C][dht:029]:     Accuracy Decimals: 1
[18:34:00][C][dht:030]:   Humidity 'Humedad-03'
[18:34:00][C][dht:030]:     Device Class: 'humidity'
[18:34:00][C][dht:030]:     State Class: 'measurement'
[18:34:00][C][dht:030]:     Unit of Measurement: '%'
[18:34:00][C][dht:030]:     Accuracy Decimals: 0

The problem continues

[18:35:19][D][sensor:124]: 'Temperatura-02': Sending state 25.30000 °C with 1 decimals of accuracy
[18:35:19][D][sensor:124]: 'Humedad-02': Sending state 47.70000 % with 0 decimals of accuracy
[18:35:28][W][dht:169]: Requesting data from DHT failed!
[18:35:28][W][dht:060]: Invalid readings! Please check your wiring (pull-up resistor, pin number).
[18:35:28][D][sensor:124]: 'Temperatura-03': Sending state nan °C with 1 decimals of accuracy
[18:35:28][D][sensor:124]: 'Humedad-03': Sending state nan % with 0 decimals of accuracy

Triple check your wiring.

Try swapping the sensors. You may have a faulty one.

Hello.
I changed the sensor and it works now.
It seemed strange to me that it could be damaged.
I have even put three DHT sensors on a single ESP and it works perfectly.
Thank you so much