Help to Connect an ESP32 to DHT-22

I’m very new and wish to connect a DHT-22 sensor to a ESP32. Is there sample code somewhere that I can use that might work?