but when i try to instatiate a dht I get the error message
I still can't see your sketch that instantiates your class.