user39056: I'm new in the Arduino world and today i was trying to make a simple program to show the temparature an humidity with this sensor. I made a circuit following one tutorial and nothing happend, the result was Temperature: 0 Humidity: 0. 
My question is, what is wrong? Probably the sensor is broken or the code is wrong.
I also need to say that i use a 5K1 resistor in exchange of the 4.7K resistor and accidentally I connected the sensor without the resistance for a few seconds.
This is the code:
#include <DHT.h>
#include <DHT_U.h>

int SENSOR = 2;
int TEMPERATURE;
int HUMIDITY;

DHT dht(SENSOR, DHT11);

void setup() {
Serial.begin(9600);
dht.begin();
}

void loop() {
TEMPERATURE = dht.readTemperature();
HUMIDITY = dht.readHumidity();
Serial.print("Temperature: ");
Serial.print(TEMPERATURE);
Serial.print(" Humidity: ");
Serial.println(HUMIDITY);
delay(1000);
}

This is the circuit scheme:

This is a photo of the circuit and the sensor (probably damaged):



Thanks for your time and sorry for my bad english.

user39056: Finally I was able to solve the problem by not using the resistor and connecting it directly, I also had a problem with the sensor pins since some were badly connected, but it was also solved. Now both sensors are working well including the melted one. Thanks!.

39056: <p>I'm new in the Arduino world and today i was trying to make a simple program to show the temparature an humidity with this sensor. I made a circuit following one tutorial and nothing happend, <strong>the result was Temperature: 0 Humidity: 0.</strong> 
My question is, what is wrong? Probably the sensor is broken or the code is wrong.
<em>I also need to say that i use a 5K1 resistor in exchange of the 4.7K resistor and accidentally I connected the sensor without the resistance for a few seconds.</em></p>

<p><strong>This is the code:</strong></p>

<pre><code>#include &lt;DHT.h&gt;
#include &lt;DHT_U.h&gt;

int SENSOR = 2;
int TEMPERATURE;
int HUMIDITY;

DHT dht(SENSOR, DHT11);

void setup() {
Serial.begin(9600);
dht.begin();
}

void loop() {
TEMPERATURE = dht.readTemperature();
HUMIDITY = dht.readHumidity();
Serial.print("Temperature: ");
Serial.print(TEMPERATURE);
Serial.print(" Humidity: ");
Serial.println(HUMIDITY);
delay(1000);
}
</code></pre>

<p><strong>This is the circuit scheme:</strong></p>

<p><a href="https://i.stack.imgur.com/01uZZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/01uZZ.png" alt="enter image description here"></a></p>

<p><strong>This is a photo of the circuit and the sensor (probably damaged):</strong></p>

<p><a href="https://i.stack.imgur.com/xgUdo.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xgUdo.jpg" alt="enter image description here"></a>
<a href="https://i.stack.imgur.com/5h1uT.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5h1uT.jpg" alt="enter image description here"></a>
<a href="https://i.stack.imgur.com/icXBK.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/icXBK.jpg" alt="enter image description here"></a></p>

<p><strong><em>Thanks for your time and sorry for my bad english.</em></strong></p>
 39056: <p>Finally I was able to solve the problem by <strong>not using the resistor</strong> and connecting it directly, I also had a problem with the sensor pins since some were badly connected, but it was also solved. <strong>Now both sensors are working well</strong> including the melted one. <strong><em>Thanks!</em></strong>.<a href="https://i.stack.imgur.com/hWU87.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hWU87.png" alt="enter image description here"></a></p>
