Urgent dht 00 readings not burnt sensor bruh i dont know what todo im dying

Hello everyone urgent call, I have an issue with my sensor dht 11 I keep getting 00 readings even though it is a new sensor It began when I clicked the reset button on my Arduino but I reuploaded the code then it didn't work as before I keep getting 00 readings!! this is very urgent the deadline is tom morning manila time I hope I can get a help with the professionals

Hi, can you get a new sensor ? It is best to have a working prototype while making the final version, so you have something to fall back to.

If you show a photo of your project, the code (between code tags), and a schematic, then we might find a problem. We don't even know which Arduino board you use. But if your DHT11 is broken, then you need an other sensor anyway.

There are a few common problems that you can check:

  • Is there a pullup resistor ?
  • Try another library.
  • Measure all the voltages with a multimeter.
  • Breadboards can have bad contacts, relocate your components to an other part of the breadboard.
  • Jumper wires can be broken.

There is a pull up resistor
How can I

Post your code

type or paste code here
```#include <SimpleDHT.h>
#include <Wire.h> 
#include <LiquidCrystal_I2C.h>

// for DHT11, 
//      VCC: 5V or 3V
//      GND: GND
//      DATA: 2
int pinDHT11 = 2;
SimpleDHT11 dht11;
LiquidCrystal_I2C lcd(0x27, 16, 2);

void setup() {
  Serial.begin(9600);
  Serial.println("Setup started...");
}

void loop() {
  Serial.println("=================================");
  Serial.println("Starting loop...");

  byte temperature = 0;
  byte humidity = 0;
  int err = SimpleDHTErrSuccess;

  Serial.println("Reading DHT11 sensor...");
  if ((err = dht11.read(pinDHT11, &temperature, &humidity, NULL)) != SimpleDHTErrSuccess) {
    Serial.print("Read DHT11 failed, err="); 
    Serial.println(err);
    delay(1000);
    return;
  }

  Serial.print("Temperature: "); 
  Serial.print((int)temperature); 
  Serial.println(" *C");
  
  Serial.print("Humidity: "); 
  Serial.print((int)humidity); 
  Serial.println(" %");

  lcd.begin(16, 2); // Specify the dimensions of the LCD display (16 columns, 2 rows)
  lcd.backlight();
  lcd.print("Temperature: "); 
  lcd.print((int)temperature); 
  lcd.print(" *C");
  lcd.setCursor(0, 1);
  lcd.print("Humidity: "); 
  lcd.print((int)humidity); 
  lcd.print(" %");

  delay(2000);
}

please help me the deadline for this grade is tomm

it just says error`

`

Provide a link to your DHT11 datasheet. It has an additional circuit board attached to it.

What can you explain?

what is that?

What told you now to connect the DHT?

that sir

That video is horrible.
Do yourself a favor and start over. Download this library

and use its examples. Once you get the sensor working we can add the LCD code

thanks sir I love you

Sir can you help me code

I don't have enough time

Your code is expecting the DHT to be connected to pin 2.
You have it connected to pin 11 (if you followed the instructions in the video).

@zhyrex, please don't die, just move the DHT11 data pin to Arduino pin2.

Thanks but I encountered another problem
nothing displays on lcd

You could use an I2C Scanner to check what address the LCD display is at.
for example this one:
https://playground.arduino.cc/Main/I2cScanner/

See also:
Arduino | How to Scan and Detect I2C Addresses | Adafruit Learning System

Your code is expecting it to be at address 0x27.

Get the temp sensor working first before you worry about the LCD