How it's done
In example code digital pin 2 is used for Data signal.
Modify code line 6, replace number "2" with the number of pin you are using on your Arduino board for sensor data pin. In our case it is pin "6".
Replace #define DHTPIN 2 // what digital pin we're connected to with #define DHTPIN 6 // what digital pin we're connected to