does not name a type - error message

I get the following error message, and I´m pretty sure it must be something to do which the reference to the external libraries. Can you figure out what I do wrong?

Arduino: 1.0.6 (Mac OS X), Board: “Arduino Uno”
/Users/thomassaabynoer/Downloads/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I/Users/thomassaabynoer/Downloads/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino -I/Users/thomassaabynoer/Downloads/Arduino.app/Contents/Resources/Java/hardware/arduino/variants/standard -I/Users/thomassaabynoer/Documents/Arduino/libraries/DHTlib -I/Users/thomassaabynoer/Documents/Arduino/libraries/Sensuino -I/Users/thomassaabynoer/Downloads/Arduino.app/Contents/Resources/Java/libraries/Ethernet -I/Users/thomassaabynoer/Downloads/Arduino.app/Contents/Resources/Java/libraries/SPI /var/folders/f5/l3l68l4x5bb3l11yxwywkpmm0000gp/T/build595451979871171306.tmp/KoopMonitor.cpp -o /var/folders/f5/l3l68l4x5bb3l11yxwywkpmm0000gp/T/build595451979871171306.tmp/KoopMonitor.cpp.o
KoopMonitor:13: error: ‘DHT’ does not name a type
KoopMonitor.ino: In function ‘void setup()’:
KoopMonitor:34: error: expected unqualified-id before ‘.’ token
KoopMonitor.ino:44: warning: deprecated conversion from string constant to ‘char*’
KoopMonitor.ino: In function ‘void loop()’:
KoopMonitor:91: error: expected primary-expression before ‘int’
KoopMonitor:91: error: expected )' before 'int' KoopMonitor:110: error: expected primary-expression before 'int' KoopMonitor:110: error: expected )’ before ‘int’

#include <dht.h>

#include <SensuinoEth.h>
#include <SensuinoSerial.h>
#include <Ethernet.h>
#include <SPI.h>

// Include DHT for the humidity and temp sensor
#include "DHT.h"
// Set port for DHT
#define DHTPIN A0  
#define DHTTYPE DHT11   // DHT 11 
DHT dht(DHTPIN, DHTTYPE);


SensuinoEth pf;

const long int device_id = 19204; // This is your device's ID

const unsigned long int feed_51691 = 51691; // This is the feed "temperature-sensor"
const unsigned long int feed_51692 = 51692; // This is the feed "humidity-sensor"
const unsigned long int feed_51693 = 51693; // This is the feed "noise-sensor"
const unsigned long int feed_51694 = 51694; // This is the feed "light-sensor"


unsigned long timeRef;
int led = 9;
char buffer[30];
int val = 0;
int numTries = 5;

void setup() {
  Serial.begin(9600);  
  dht.begin();
  byte err;
  // Use the following if you don't want to use DHCP
  // pf.init(&err, 0, "aa:bb:cc:dd:ee:ff", "192.168.1.150", "192.168.1.1");// First IP is for the Arduino, second IP is for the gateway
  //Serial.println("MAC address setting up...");
  //pf.init(&err, 1, "aa:bb:cc:dd:ee:ff");
  pf.init(&err, 1, "90:A2:DA:0D:BB:F0");
  delay(1000);
  //Serial.println("MAC address set");
  //Serial.println("setting up SenseKey");
  pf.setSenseKey("f4xKhzhKH7vydSDnPvIUZw");// This is your sense key
  /* We set the PINs */
  //Serial.println("SenseKey Set");
  pinMode(0, INPUT);
  pinMode(1, INPUT);
  pinMode(2, INPUT);
  Serial.println("Init done");
  // For each output feed, get the last value and trigger the right PIN on the arduino

  pinMode(led, OUTPUT);     
  // Init timeRef
  timeRef = millis();
}

void loop() {

  if ( (60000-(millis() - timeRef))/10 > 300 ) 
  {
    digitalWrite(led, LOW); 
    delay(  abs( (60000-(millis() - timeRef))/10 )/2 );
    digitalWrite(led, HIGH);
    delay(  abs( (60000-(millis() - timeRef))/10 )/2 );
    digitalWrite(led, LOW);
  }
  else {

    int tries;
    boolean post1 = false;
    boolean post2 = false;
    boolean post3 = false;
    boolean post4 = false;

    /*
      Serial.println("POST value for feed temperature-sensor");
     temp = dht.readTemperature();
     Serial.println(temp);
     sprintf(buffer,"%d",(int)temp);
     Serial.println("Posting in feed temperature-sensor");
     if(pf.postSense(feed_51691, buffer)) {
     Serial.println("POST in feed temperature-sensor succeeded");
     } else {
     Serial.println("POST in feed temperature-sensor failed");
     }
     */
    tries = numTries;
    while(post1 == false && tries > 0){
      //Serial.println("POST value for feed temp-sensor");
      val = (int)dht.readTemperature();
      sprintf(buffer,"%d",val);
      //Serial.println("Posting in feed temp-sensor");

      if(pf.postSense(feed_51691, buffer)) {
        Serial.println("POST in feed temp-sensor succeeded");
        postBlink(1);
        post1 = true;
      } 
      else {
        Serial.println("POST in feed temp-sensor failed");
        errBlink(1);
        post1 = false;
        tries--;
      }
    }
    tries = numTries;
    while(post2 == false && tries > 0){
      //Serial.println("POST value for feed hum-sensor");
      val = (int)dht.readHumidity();
      sprintf(buffer,"%d",val);
      //Serial.println("Posting in feed hum-sensor");
      if(pf.postSense(feed_51692, buffer)) {
        Serial.println("POST in feed hum-sensor succeeded");
        postBlink(2);
        post2 = true;
      } 
      else {
        Serial.println("POST in feed hum-sensor failed");
        errBlink(2);
        post2 = false;
        tries--;
      }
    }


    tries = numTries;
    while(post3 == false && tries > 0){
      //Serial.println("POST value for feed noise-sensor");
      val = analogRead(1);
      sprintf(buffer,"%d",val);
      //Serial.println("Posting in feed noise-sensor");
      if(pf.postSense(feed_51693, buffer)) {
        Serial.println("POST in feed noise-sensor succeeded");
        postBlink(3);
        post3 = true;
      } 
      else {
        Serial.println("POST in feed noise-sensor failed");
        errBlink(3);
        post3 = false;
        tries--;
      }
    }
    tries = numTries;
    while(post4 == false && tries > 0){
      //Serial.println("POST value for feed -sensor");
      val = analogRead(2);
      sprintf(buffer,"%d",val);
      //Serial.println("Posting in feed noise-sensor");
      if(pf.postSense(feed_51694, buffer)) {
        Serial.println("POST in feed noise-sensor succeeded");
        postBlink(4);
        post4 = true;
      } 
      else {
        Serial.println("POST in feed noise-sensor failed");
        errBlink(4);
        post4 = false;
        tries--;
      }
    }

    timeRef = millis();
  }
}

void postBlink(int blinks){
  int reps = blinks;
  while(reps>0){
    digitalWrite(led, LOW);   
    delay(50);               
    digitalWrite(led, HIGH);   
    delay(50);
    digitalWrite(led, LOW);   
    reps--;
  }
}

void errBlink(int blinks){
  int reps = blinks;
  while(reps>0){
    digitalWrite(led, LOW);   
    delay(200);               
    digitalWrite(led, HIGH);   
    delay(200);
    digitalWrite(led, LOW); 
    reps--;
  }
}

You seem to have included DHT.h twice, which you shouldn't.

For whatever reason, it isn't seeing the definition of the DHT class, which is presumably in that file. Make sure the library file is in the correct place. Restart the IDE after installing the library file. Be aware of what is, and isn't, case-sensitive in your environment.

Also make sure you don't have two incompatible versions of dht.h