DHT11 Temperature Sensor Error

Hi, I am getting an error on the data from my new DHT11 Sensor. It is a 3-pin sensor, wired into a breadboard, with wires going to pin 2 (Digital) and GND and 5V.

The whole setup was verified using two Youtube videos, but I am still getting the following result in the serial monitor: ĥ⸮⸮⸮⸮⸮ ĥ⸮⸮⸮⸮⸮ ĥ⸮⸮⸮⸮⸮ ĥ⸮⸮⸮⸮⸮ repeatedly.

I am sure I followed the instructions clearly, but it is my first time working with such sensor.

Here is the code I am using to get the results:

#include <dht.h>

dht DHT;

#define DHT11_PIN 7

void setup(){

void loop()
  int chk = DHT.read11(DHT11_PIN);
  Serial.print("Temperature = ");
  Serial.print("Humidity = ");

Thank you very much for the kind help!

What speed have you got the serial monitor set to?

2400Baud, polling the sensor every 3000ms

And there is your answer

And there is your answer

Could you kindly elaborate on this, as I am a total newbie when it comes to arduino programming.

What is the correct BAUD Setting I should be using?

If you look at the code you posted in the original post, you'll see that you set the serial speed to 9600, which is what the serial monitor should be set to.

(+ karma for using code tags in your first post - Bravo!)

Got it! Thanks! +karma to you for being so helpful!

Got it! Thanks! +karma to you for being so helpful!

Question: does the DHT11 work, that is, does it produce meaningful humidity information in Serial Monitor?

In your original post you say you connect the data wire from the DHT11 with pin 2 of the Arduino, while the sketch says "#define DHT11_PIN 7" -- this means that you should have the data wire from the DHT 11 connected with pin D7 of the arduino.