Help DHT22 time update

hi
how to update temperature after 10 sec please:(

# Example configuration.yaml entry
sensor:
  - platform: dht
    sensor: DHT22
    pin: 23
    temperature_offset: 2.1
    humidity_offset: -3.2
    monitored_conditions:
      - temperature
      - humidity
   

add code

scan_interval: 1

not worked

Integrations that rely on GPIO will be removed in upcoming versions of Home Assistant, so you might want to switch to some other integration.

Someone recommended this

I haven’t tried it yet, but it seems like it should work.

scan_interval is supposed to work. Maybe the temperature was just constant for 8 minutes (although that seems unlikely). Although 1 second might be too short. Try 10 seconds:

sensor:
  - platform: dht
    sensor: DHT22
    pin: 23
    temperature_offset: 2.1
    humidity_offset: -3.2
    scan_interval: 10
    monitored_conditions:
      - temperature
      - humidity