DHT11 time out error

Here is the code, and the output values all equal to zero. A 4.7k pullup resistor is replied. Can someone help me with this.
Cheers

#include <dht11.h>




dht11 DHT11;
#define DHT11PIN 2
void setup(){
Serial.begin(9600);
}

void loop(){
Serial.println("/n");
int chk = DHT11.read(DHT11PIN);
 Serial.print("Read sensor: ");
switch (chk)
{
  case DHTLIB_OK: 
              Serial.println("OK"); 
              break;
  case DHTLIB_ERROR_CHECKSUM: 
              Serial.println("Checksum error"); 
              break;
  case DHTLIB_ERROR_TIMEOUT: 
              Serial.println("Time out error"); 
              break;
  default: 
              Serial.println("Unknown error"); 
              break;
}

Serial.print("Humidity (%): ");
Serial.println((float)DHT11.humidity, 2);

Serial.print("Temperature (oC): ");
Serial.println((float)DHT11.temperature, 2);
delay(2000);
}

wires.png

@dx012210 - please look at Read this before posting a programming question and edit your post to use code tags around your sketch

modified, thanks for your notification.

You can simplify it by using DHT library from Adafruit. Note that if you use DHT11 module type, you do not need to use the resistor because it is built-in. See Arduino - DHT tutorial