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. Hardware
  3. [SOLVED] Problems with an SI7021 temp/humidity sensor

[SOLVED] Problems with an SI7021 temp/humidity sensor

Scheduled Pinned Locked Moved Hardware
13 Posts 4 Posters 12.0k Views 3 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.
  • dbemowskD dbemowsk

    So I have been struggling with a temp and humidity sensor that I built using an SI7021 sensor. The problem is that it continuously reads 18.88 C or 66 F with 118% humidity. Since this is an I2C sensor, I ran an I2C scanner sketch and it said that it found a device at 0x40, which is what this should be at, so it is seeing the device. I have checked and re-checked the wiring and for shorts/opens, but found nothing wrong.

    Has anyone heard of this before?

    YveauxY Offline
    YveauxY Offline
    Yveaux
    Mod
    wrote on last edited by
    #2

    @dbemowsk What hardware setup?
    Did you install pullup resistors on the I2C lines (possibly on the breakout board) ?
    Did you check with another sensor?
    What Si7021 library do you use?

    http://yveaux.blogspot.nl

    dbemowskD 1 Reply Last reply
    0
    • YveauxY Yveaux

      @dbemowsk What hardware setup?
      Did you install pullup resistors on the I2C lines (possibly on the breakout board) ?
      Did you check with another sensor?
      What Si7021 library do you use?

      dbemowskD Offline
      dbemowskD Offline
      dbemowsk
      wrote on last edited by
      #3

      @Yveaux I have this installed on an easy newbie board. The pull ups are already on the breakout board. They can be seen in this pic as the 2 - 103 (10K) resistors.
      0_1489334019514_upload-1c7d436d-3945-44e9-aa59-d890045176b1
      I have one more sensor, but I didn't unsolder this one to try that one. I knew I should have put a socket on for that (Hind sight is always 20 20). As for the libraries, I tried a couple different ones with the same results. There is one that is apparently included with MySensors which I tried, and I also tried the one from Adafruit.

      Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
      Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

      YveauxY 1 Reply Last reply
      0
      • dbemowskD dbemowsk

        @Yveaux I have this installed on an easy newbie board. The pull ups are already on the breakout board. They can be seen in this pic as the 2 - 103 (10K) resistors.
        0_1489334019514_upload-1c7d436d-3945-44e9-aa59-d890045176b1
        I have one more sensor, but I didn't unsolder this one to try that one. I knew I should have put a socket on for that (Hind sight is always 20 20). As for the libraries, I tried a couple different ones with the same results. There is one that is apparently included with MySensors which I tried, and I also tried the one from Adafruit.

        YveauxY Offline
        YveauxY Offline
        Yveaux
        Mod
        wrote on last edited by Yveaux
        #4

        @dbemowsk this is not an si7021 sensor. The ic looks different: https://www.google.nl/imgres?imgurl=http%3A%2F%2Fuk.farnell.com%2Fproductimages%2Fstandard%2Fen_GB%2F2422570-40.jpg&imgrefurl=http%3A%2F%2Fuk.farnell.com%2Fsilicon-labs%2Fsi7021-a20-gm%2Ftemp-humidity-sensor--0-4deg-c%2Fdp%2F2473670&docid=ePsMcVMs1jbwkM&tbnid=Lj5GeDfYKpx0AM%3A&vet=1&w=234&h=200&client=ms-android-samsung&bih=560&biw=360&q=si7021&ved=0ahUKEwiUi97FudHSAhWDDRoKHUrFB8wQMwglKAowCg&iact=mrc&uact=8

        Might be compatible, but it could be the cause of your issues.

        http://yveaux.blogspot.nl

        dbemowskD tekkaT dpcrD 3 Replies Last reply
        0
        • YveauxY Yveaux

          @dbemowsk this is not an si7021 sensor. The ic looks different: https://www.google.nl/imgres?imgurl=http%3A%2F%2Fuk.farnell.com%2Fproductimages%2Fstandard%2Fen_GB%2F2422570-40.jpg&imgrefurl=http%3A%2F%2Fuk.farnell.com%2Fsilicon-labs%2Fsi7021-a20-gm%2Ftemp-humidity-sensor--0-4deg-c%2Fdp%2F2473670&docid=ePsMcVMs1jbwkM&tbnid=Lj5GeDfYKpx0AM%3A&vet=1&w=234&h=200&client=ms-android-samsung&bih=560&biw=360&q=si7021&ved=0ahUKEwiUi97FudHSAhWDDRoKHUrFB8wQMwglKAowCg&iact=mrc&uact=8

          Might be compatible, but it could be the cause of your issues.

          dbemowskD Offline
          dbemowskD Offline
          dbemowsk
          wrote on last edited by
          #5

          @Yveaux SOrry, had to look back at the ebay purchase.
          0_1489341078004_upload-daf4c5fa-d971-4616-91cd-42ffb0a47317
          It was sold as an HDC1080. When I posted, I looked at the back and it said SI7021. As I remember, it did say this was compatible to the SI7021.

          Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
          Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

          1 Reply Last reply
          0
          • YveauxY Yveaux

            @dbemowsk this is not an si7021 sensor. The ic looks different: https://www.google.nl/imgres?imgurl=http%3A%2F%2Fuk.farnell.com%2Fproductimages%2Fstandard%2Fen_GB%2F2422570-40.jpg&imgrefurl=http%3A%2F%2Fuk.farnell.com%2Fsilicon-labs%2Fsi7021-a20-gm%2Ftemp-humidity-sensor--0-4deg-c%2Fdp%2F2473670&docid=ePsMcVMs1jbwkM&tbnid=Lj5GeDfYKpx0AM%3A&vet=1&w=234&h=200&client=ms-android-samsung&bih=560&biw=360&q=si7021&ved=0ahUKEwiUi97FudHSAhWDDRoKHUrFB8wQMwglKAowCg&iact=mrc&uact=8

            Might be compatible, but it could be the cause of your issues.

            tekkaT Offline
            tekkaT Offline
            tekka
            Admin
            wrote on last edited by tekka
            #6

            Looks like a HDC1080 - EDIT: you were faster :)

            dbemowskD 1 Reply Last reply
            0
            • YveauxY Yveaux

              @dbemowsk this is not an si7021 sensor. The ic looks different: https://www.google.nl/imgres?imgurl=http%3A%2F%2Fuk.farnell.com%2Fproductimages%2Fstandard%2Fen_GB%2F2422570-40.jpg&imgrefurl=http%3A%2F%2Fuk.farnell.com%2Fsilicon-labs%2Fsi7021-a20-gm%2Ftemp-humidity-sensor--0-4deg-c%2Fdp%2F2473670&docid=ePsMcVMs1jbwkM&tbnid=Lj5GeDfYKpx0AM%3A&vet=1&w=234&h=200&client=ms-android-samsung&bih=560&biw=360&q=si7021&ved=0ahUKEwiUi97FudHSAhWDDRoKHUrFB8wQMwglKAowCg&iact=mrc&uact=8

              Might be compatible, but it could be the cause of your issues.

              dpcrD Offline
              dpcrD Offline
              dpcr
              wrote on last edited by
              #7

              @Yveaux I have to agree. The SI7021 is an I2C sensor an the one you're using in the pic does not seem to be I2C. Also some of the I2C sensors come with the pull-up resistors already on the board (check the data sheet for your sensor).

              dbemowskD 1 Reply Last reply
              0
              • dpcrD dpcr

                @Yveaux I have to agree. The SI7021 is an I2C sensor an the one you're using in the pic does not seem to be I2C. Also some of the I2C sensors come with the pull-up resistors already on the board (check the data sheet for your sensor).

                dbemowskD Offline
                dbemowskD Offline
                dbemowsk
                wrote on last edited by
                #8

                @dpcr look at the pic in my second post. The pull ups are there. Also, read the original post where I stated that I ran an I2C scanner and it said that it found a device at 0x40. This is most definitely an I2C sensor.

                Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                YveauxY 1 Reply Last reply
                0
                • tekkaT tekka

                  Looks like a HDC1080 - EDIT: you were faster :)

                  dbemowskD Offline
                  dbemowskD Offline
                  dbemowsk
                  wrote on last edited by
                  #9

                  @tekka so is there a different library for the HDC1080? Worth the list of sensor numbers on the back I figured that meant that those were compatible sensors.

                  Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                  Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                  1 Reply Last reply
                  0
                  • dbemowskD dbemowsk

                    @dpcr look at the pic in my second post. The pull ups are there. Also, read the original post where I stated that I ran an I2C scanner and it said that it found a device at 0x40. This is most definitely an I2C sensor.

                    YveauxY Offline
                    YveauxY Offline
                    Yveaux
                    Mod
                    wrote on last edited by
                    #10

                    @dbemowsk this post states the HDC1080 is only pin compatible to the Si7021, not software compatible.
                    Could you try with a HDC1080 library, e.g. this one ?

                    http://yveaux.blogspot.nl

                    dbemowskD 2 Replies Last reply
                    0
                    • YveauxY Yveaux

                      @dbemowsk this post states the HDC1080 is only pin compatible to the Si7021, not software compatible.
                      Could you try with a HDC1080 library, e.g. this one ?

                      dbemowskD Offline
                      dbemowskD Offline
                      dbemowsk
                      wrote on last edited by
                      #11

                      @Yveaux I will try that, thanks

                      Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                      Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                      1 Reply Last reply
                      0
                      • YveauxY Yveaux

                        @dbemowsk this post states the HDC1080 is only pin compatible to the Si7021, not software compatible.
                        Could you try with a HDC1080 library, e.g. this one ?

                        dbemowskD Offline
                        dbemowskD Offline
                        dbemowsk
                        wrote on last edited by
                        #12

                        @Yveaux So I tried that library and it worked. Thanks for the help. Now I just need to print an enclosure for the thing.

                        Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                        Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                        YveauxY 1 Reply Last reply
                        0
                        • dbemowskD dbemowsk

                          @Yveaux So I tried that library and it worked. Thanks for the help. Now I just need to print an enclosure for the thing.

                          YveauxY Offline
                          YveauxY Offline
                          Yveaux
                          Mod
                          wrote on last edited by
                          #13

                          @dbemowsk said in Problems with an SI7021 temp/humidity sensor:

                          @Yveaux So I tried that library and it worked. Thanks for the help. Now I just need to print an enclosure for the thing.

                          Great!

                          http://yveaux.blogspot.nl

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


                          26

                          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