cant get sht-30 sensor to work
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- dfghdfrtdtr
- Posts: 11
- Joined: Sun Nov 13, 2022 3:16 am
cant get sht-30 sensor to work
i recently purchased two sht30 sensors. the first one Product ID: 5064 works fine, but the second one Product ID: 4099 i cant get to work. the documentation says that the same code should work with either one but i cant even detect it. any help would be nice. thanks
- Franklin97355
- Posts: 23912
- Joined: Mon Apr 21, 2008 2:33 pm
Re: cant get sht-30 sensor to work
How are you connecting the sensor to your processor and what processor is it? Cn you post a picture of the connections?
- dfghdfrtdtr
- Posts: 11
- Joined: Sun Nov 13, 2022 3:16 am
Re: cant get sht-30 sensor to work
im using the metro board Product ID: 2488 and im connecting it the same way as the other sensor. black to ground, red to 5v or 3v (tried both), yellow to scl, and green to sda. i have tried swapping green and yellow wires, and i tried plugging into a4 and a5. I was using the adafruit sht31 library example and it "cant find the sensor".
Right now its plugged into jumpers, i know they work since they work in the other sensor. i also tested continuity from the board to the sensor in the mesh head
https://imgur.com/a/HPHVNVC
Right now its plugged into jumpers, i know they work since they work in the other sensor. i also tested continuity from the board to the sensor in the mesh head
https://imgur.com/a/HPHVNVC
- Franklin97355
- Posts: 23912
- Joined: Mon Apr 21, 2008 2:33 pm
Re: cant get sht-30 sensor to work
Well, it looks like you correctly wired so let's try a replacement. Contact [email protected] with a link to this thread and they will get you a new one. Let me know if it works.
- dfghdfrtdtr
- Posts: 11
- Joined: Sun Nov 13, 2022 3:16 am
Re: cant get sht-30 sensor to work
thanks for your help, but i still cant get the new one to work. could i be using the wrong library or something? nothing i can find can even detect it.
- Franklin97355
- Posts: 23912
- Joined: Mon Apr 21, 2008 2:33 pm
Re: cant get sht-30 sensor to work
So, you got a replacement from us that does not work but the other one does?
- dfghdfrtdtr
- Posts: 11
- Joined: Sun Nov 13, 2022 3:16 am
Re: cant get sht-30 sensor to work
no, neither works
- adafruit2
- Posts: 22148
- Joined: Fri Mar 11, 2005 7:36 pm
Re: cant get sht-30 sensor to work
please post a photo of your wiring, then try running the i2c scanner sketch
https://learn.adafruit.com/scanning-i2c-addresses
try swapping the SCL and SDA lines as well - just in case yours has em backwards
https://learn.adafruit.com/scanning-i2c-addresses
try swapping the SCL and SDA lines as well - just in case yours has em backwards
- dfghdfrtdtr
- Posts: 11
- Joined: Sun Nov 13, 2022 3:16 am
Re: cant get sht-30 sensor to work
i wired it with red to 5v, black to ground, yellow to SCL, and green to SDA. I even tried swapping the yellow and green wires, but the results were the same. i wired it the way it shows in the link you gave me and per the instructions on the product page. here is a link to those pictures https://imgur.com/a/O5cMiyc
As per the scanner, using the code from the link you gave me I couldn't get it to find the device. here is a link of the results i was getting. https://imgur.com/a/KgZR3ec
As per the scanner, using the code from the link you gave me I couldn't get it to find the device. here is a link of the results i was getting. https://imgur.com/a/KgZR3ec
- adafruit2
- Posts: 22148
- Joined: Fri Mar 11, 2005 7:36 pm
Re: cant get sht-30 sensor to work
are ya sure those wires are fitting into the headers? they may not be making contact. we want to make sure that if we replace it, it doesnt have the exact same issue :(
- dfghdfrtdtr
- Posts: 11
- Joined: Sun Nov 13, 2022 3:16 am
Re: cant get sht-30 sensor to work
i have continuity from the solder point under the board (like under ground to the black wire) to the part where the wire attaches to the sensor. here is a picture for reference. https://imgur.com/a/KgZR3ec
i have a different style of sensor that works fine, but this one im having issues with.This is already the second one so i think i am doing something wrong, are there any other tests?
i have a different style of sensor that works fine, but this one im having issues with.This is already the second one so i think i am doing something wrong, are there any other tests?
- dfghdfrtdtr
- Posts: 11
- Joined: Sun Nov 13, 2022 3:16 am
Re: cant get sht-30 sensor to work
That was the wrong link https://imgur.com/a/LOrUTNW heres the link to show the pins i got continuity from to the sensor
- dfghdfrtdtr
- Posts: 11
- Joined: Sun Nov 13, 2022 3:16 am
Re: cant get sht-30 sensor to work
Just a follow up on this
i have a different style of sensor that works fine, but this one im having issues with.This is already the second one so i think i am doing something wrong, are there any other tests?
i have continuity from the solder point under the board (like under ground to where the black wire is soldered to the sensor) to the part where the wire attaches to the sensor head. here is a picture for reference. https://imgur.com/a/LOrUTNW
i have a different style of sensor that works fine, but this one im having issues with.This is already the second one so i think i am doing something wrong, are there any other tests?
- adafruit2
- Posts: 22148
- Joined: Fri Mar 11, 2005 7:36 pm
Re: cant get sht-30 sensor to work
yeah if two are acting the same its making us wonder if its a setup thing - do you have pullups on the SDA/SCL line to your logic level supply somewhere? 2K-10K are best
- dfghdfrtdtr
- Posts: 11
- Joined: Sun Nov 13, 2022 3:16 am
Re: cant get sht-30 sensor to work
I'm sorry but i don't quite know what that means. On the page for the product https://www.adafruit.com/product/4099 there is a link to the tutorial https://learn.adafruit.com/adafruit-sht ... r-breakout and all i can find is documentation saying that the item already has a 10k pullup resistor.
"SCL - I2C clock pin, connect to your microcontrollers I2C clock line. This pin has a 10K pullup resistor to Vin".
And on the diagram/code page https://learn.adafruit.com/adafruit-sht ... g-and-test there isn't any resistor, only the four wires. Then i tried the code on that page and the code you suggested and it didn't work.
Should i be doing something different?
"SCL - I2C clock pin, connect to your microcontrollers I2C clock line. This pin has a 10K pullup resistor to Vin".
And on the diagram/code page https://learn.adafruit.com/adafruit-sht ... g-and-test there isn't any resistor, only the four wires. Then i tried the code on that page and the code you suggested and it didn't work.
Should i be doing something different?
Please be positive and constructive with your questions and comments.