Class for DHT11, DHT21 and DHT22 (temperature & humidity)

Any solution?

You might need a pull up resistor (eg 4K) between +5V and the dataline.

How long is the line between the arduino and the sensor?

Rob