Problem with DHT11 sensor

I need to set up a DHT sensor. I have it connected to PIN 23, but when I try to start HA I get an error with the configuration.yam file.

Could you tell me how to configure it from scratch?

I’m just trying to do it with the instructions on the official website:

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

Thanks

use preformatted text when posting YAML

And what’s the error?

An error appears in one of the lines of the file configuration.yam and no longer continues.

And the text of that error is?

Problem solved.
Thanks