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 13.2k 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.
  • D Offline
    D Offline
    dbemowsk
    wrote on last edited by Yveaux
    #1

    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?

    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/

    Y 1 Reply Last reply
    0
    • D 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?

      Y Offline
      Y 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

      D 1 Reply Last reply
      0
      • Y 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?

        D Offline
        D 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/

        Y 1 Reply Last reply
        0
        • D 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.

          Y Offline
          Y 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

          D T dpcrD 3 Replies Last reply
          0
          • Y 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.

            D Offline
            D 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
            • Y 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.

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

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

              D 1 Reply Last reply
              0
              • Y 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).

                D 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).

                  D Offline
                  D 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/

                  Y 1 Reply Last reply
                  0
                  • T tekka

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

                    D Offline
                    D 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
                    • D 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.

                      Y Offline
                      Y 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

                      D 2 Replies Last reply
                      0
                      • Y 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 ?

                        D Offline
                        D 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
                        • Y 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 ?

                          D Offline
                          D 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/

                          Y 1 Reply Last reply
                          0
                          • D 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.

                            Y Offline
                            Y 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

                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                            With your input, this post could be even better 💗

                            Register Login
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            17

                            Online

                            12.0k

                            Users

                            11.2k

                            Topics

                            113.4k

                            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