Expected unqualified-id before '.' token (DHT11)

Where is the

dht DHT;

?

Better yet look at some example code for the DHT.

How to use the DHT11 with Arduino - Code, Circuit Diagram, Video Tutorial (techzeero.com)