You should go through the setup guides associated with your selected set of hardware, and make sure you have internet connectivity with the device before continuing. The following links will take you to the guides for your selected platform.
You will need to make sure you have at least version 2.4.1 of the Adafruit IO Arduino library installed before continuing.
You will also need to install the Adafruit Unified Sensor library.
As well as the DHT Sensor Library.
For this example, you will need to open the adafruitio_15_temp_humidity example in the Adafruit IO Arduino library.
Next, we will look at the network configuration options in the sketch.