Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. luCY
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    luCY

    @luCY

    0
    Reputation
    1
    Posts
    39
    Profile views
    1
    Followers
    0
    Following
    Joined Last Online

    luCY Follow

    Best posts made by luCY

    This user hasn't posted anything yet.

    Latest posts made by luCY

    • RE: 3 DHT22 recieving NAN reading from Arduino ATMEGA 2560

      First of all, I think some of your code is wrong:
      h3 = dht3.readHumidity(); // Sensor readings may also be up to 2 seconds 'old' (its a very slow sensor)
      t3 = dht3.readTemperature(); // Read temperature as Celsius (the default) // Read temperature as Fahrenheit (isFahrenheit = true)
      f3 = dht3.readTemperature(true);
      if (isnan(h) || isnan(t) || isnan(f)) {
      Serial.println(F("Failed to read from DHT sensor 3!"));
      return; }
      It needs to be changed to if(isnan(h3) || isnan(t3) || isnan(f3)) to detect if the third sensor returns NAN.

      Secondly, have you checked your wiring and the code is exactly the same as the first sensor and the second?

      Third, is this situation due to insufficient power supply? I think you can check the circuit information of the DHT22.

      posted in Troubleshooting
      luCY
      luCY