title: dht does not name a type error
body: <p>when I am compiling this code, i got the error "dht does not name a type"</p>
  
  <pre><code> #include &lt;DHT.h&gt;
  
   #include &lt;DHT22.h&gt;
  
  
    dht DHT;
  
  
    #define DHT22_PIN 5
  
   void setup()
  {
      Serial.begin(9600);
      Serial.println("DHT TEST PROGRAM ");
      Serial.print("LIBRARY VERSION: ");
      Serial.println(DHT_LIB_VERSION);
      Serial.println();
      Serial.println("Type,\tstatus,\tHumidity (%),\tTemperature (C)");
  }
  
   void loop()
  {
       // READ DATA
       Serial.print("DHT22, \t");
       int chk = DHT.read22(DHT22_PIN);
       switch (chk)
      {
           case DHTLIB_OK:
               Serial.print("OK,\t");
                break;
          case DHTLIB_ERROR_CHECKSUM:
                Serial.print("Checksum error,\t");
                break;
          case DHTLIB_ERROR_TIMEOUT:
                Serial.print("Time out error,\t");
                break;
           default:
               Serial.print("Unknown error,\t");
              break;
        }
         // DISPLAY DATA
           Serial.print(DHT.humidity, 1);
          Serial.print(",\t");
           Serial.println(DHT.temperature, 1);
         delay(1000);
  
        }
  </code></pre>
  
  <p>i am using dht22 temp and humidity sensor, my libraries are in correct folder.</p>
  
  <p>can any one help me removing this type of error..??</p>
  
  <p>thanks in advance.</p>