Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. Humidity and Temp sensor problem

Humidity and Temp sensor problem

Scheduled Pinned Locked Moved Troubleshooting
13 Posts 5 Posters 3.2k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Łukasz KostrzewaŁ Łukasz Kostrzewa

    Hi to all
    I have arduino nano and Domoticz on raspberry pi.
    Yesterday everything was working but today my sketch from Mysensor library (Humidyty sketch - I have DHT 11) sends data only once at begginning and stop sending anything.
    My Domoticz see temp and humidity values only once when arduino starts. After that no new values are received
    I don't know what is happenning
    Any idea?
    Best regards

    mfalkviddM Offline
    mfalkviddM Offline
    mfalkvidd
    Mod
    wrote on last edited by
    #2

    @Łukasz-Kostrzewa the default behavior is to only send values if they have changed from laste measurement. Could it be that there are no changes?

    Serial debug log from the sensor is usually one of the first things to look at, it can be very helpful.

    1 Reply Last reply
    0
    • Łukasz KostrzewaŁ Offline
      Łukasz KostrzewaŁ Offline
      Łukasz Kostrzewa
      wrote on last edited by
      #3

      Thx for quick answer.
      I was thinking the same. But I have been using this sketch for about a month and temp values was sending to my raspberry pi Domoticz every second.
      Suddenly sketch sends values at the beggining and dies:(

      I Wonder what means:
      delay(dht.getMinimumSamplingPeriod());
      in Humidity sketch from My sensors library.
      When I use my serial debug log I see that my temp and humidity values are send but only once and script stops. Yesterday sketch send this values all the time.
      This is weird

      mfalkviddM 1 Reply Last reply
      0
      • Łukasz KostrzewaŁ Łukasz Kostrzewa

        Thx for quick answer.
        I was thinking the same. But I have been using this sketch for about a month and temp values was sending to my raspberry pi Domoticz every second.
        Suddenly sketch sends values at the beggining and dies:(

        I Wonder what means:
        delay(dht.getMinimumSamplingPeriod());
        in Humidity sketch from My sensors library.
        When I use my serial debug log I see that my temp and humidity values are send but only once and script stops. Yesterday sketch send this values all the time.
        This is weird

        mfalkviddM Offline
        mfalkviddM Offline
        mfalkvidd
        Mod
        wrote on last edited by
        #4

        @Łukasz-Kostrzewa try adding a Serial.println statement before and after the sensor goes to sleep to see if they both get executed.

        dht.getMinimumSamplingPeriod() returns the time to wait when the dht takes a measurement. You can do a Serial.println(dht.getMinimumSamplingPeriod()); if you eant to see the value.

        1 Reply Last reply
        0
        • TheoLT Online
          TheoLT Online
          TheoL
          Contest Winner
          wrote on last edited by
          #5

          I have some sensors with DHT that behave the same. I know the node keeps working cause the values from the barometer sensor, which is on the some node, keeps working. The most interesting thing is that the temp and humidity values are being reported again after a couple of days.

          So far I've noticed that this happens when I add or remove the power plugs of other devices that are in the same outlet. It's a funny problem ;-). And think it's power related.

          1 Reply Last reply
          0
          • Łukasz KostrzewaŁ Offline
            Łukasz KostrzewaŁ Offline
            Łukasz Kostrzewa
            wrote on last edited by
            #6

            Hi again
            I've done a simple test.
            I grab my dht11 sensor in my hand and after some time values are being see my values being send in my serial debug. I don't know why yesterday values was sending all the time but...
            Sketch is working and reports temp changes by 1 degree.
            Best regards and thx for answers

            1 Reply Last reply
            1
            • Łukasz KostrzewaŁ Offline
              Łukasz KostrzewaŁ Offline
              Łukasz Kostrzewa
              wrote on last edited by
              #7

              Hi
              After hour script back to the beginning and now it sends temp + hum values every second:)
              I don't understand what is going on :)
              Best regards

              1 Reply Last reply
              0
              • L Offline
                L Offline
                LastSamurai
                Hardware Contributor
                wrote on last edited by
                #8

                Most likely power issues. Does the node run on battery? Otherwise is the power source stable and do you use a capacitor at the radio?

                1 Reply Last reply
                0
                • Łukasz KostrzewaŁ Offline
                  Łukasz KostrzewaŁ Offline
                  Łukasz Kostrzewa
                  wrote on last edited by
                  #9

                  Hi
                  Powers source - phone charger 5V 1Aand Yes...I use 4,7 capacitor at the radio.

                  L 1 Reply Last reply
                  0
                  • Łukasz KostrzewaŁ Łukasz Kostrzewa

                    Hi
                    Powers source - phone charger 5V 1Aand Yes...I use 4,7 capacitor at the radio.

                    L Offline
                    L Offline
                    LastSamurai
                    Hardware Contributor
                    wrote on last edited by
                    #10

                    @Łukasz-Kostrzewa 5V, so you are using a voltage converter to 3.3V? Have you checked that one (stable output, not overheating,...)?

                    1 Reply Last reply
                    0
                    • AWIA Offline
                      AWIA Offline
                      AWI
                      Hero Member
                      wrote on last edited by AWI
                      #11

                      Have you consider that The DHT is broken? These sensors have a short lifetime (and are inaccurate etc., there are much better alternatives.

                      1 Reply Last reply
                      0
                      • Łukasz KostrzewaŁ Offline
                        Łukasz KostrzewaŁ Offline
                        Łukasz Kostrzewa
                        wrote on last edited by
                        #12

                        Hi
                        Maybe it is broken. I don't know :(I have couple of DHT11 sensors and some of them are working sam of them are not :(
                        From yesterday (so far) everything works great :)
                        I report later if something will broke.
                        Best regards

                        1 Reply Last reply
                        0
                        • Łukasz KostrzewaŁ Offline
                          Łukasz KostrzewaŁ Offline
                          Łukasz Kostrzewa
                          wrote on last edited by
                          #13

                          One hour ago Temp and humidity sensor stopped working :( I'm not strong enough to use arduino and my sensors:( I need to buy another raspberry pi and set it as a slave (I have 4 in my house and I have no problem with them).
                          Best regards

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          12

                          Online

                          11.7k

                          Users

                          11.2k

                          Topics

                          113.1k

                          Posts


                          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • MySensors
                          • OpenHardware.io
                          • Categories
                          • Recent
                          • Tags
                          • Popular