cant get sht-30 sensor to work

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
dfghdfrtdtr
 
Posts: 11
Joined: Sun Nov 13, 2022 3:16 am

cant get sht-30 sensor to work

Post by dfghdfrtdtr »

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

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: cant get sht-30 sensor to work

Post by Franklin97355 »

How are you connecting the sensor to your processor and what processor is it? Cn you post a picture of the connections?

User avatar
dfghdfrtdtr
 
Posts: 11
Joined: Sun Nov 13, 2022 3:16 am

Re: cant get sht-30 sensor to work

Post by dfghdfrtdtr »

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

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: cant get sht-30 sensor to work

Post by Franklin97355 »

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.

User avatar
dfghdfrtdtr
 
Posts: 11
Joined: Sun Nov 13, 2022 3:16 am

Re: cant get sht-30 sensor to work

Post by dfghdfrtdtr »

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.

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: cant get sht-30 sensor to work

Post by Franklin97355 »

So, you got a replacement from us that does not work but the other one does?

User avatar
dfghdfrtdtr
 
Posts: 11
Joined: Sun Nov 13, 2022 3:16 am

Re: cant get sht-30 sensor to work

Post by dfghdfrtdtr »

no, neither works

User avatar
adafruit2
 
Posts: 22144
Joined: Fri Mar 11, 2005 7:36 pm

Re: cant get sht-30 sensor to work

Post by adafruit2 »

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

User avatar
dfghdfrtdtr
 
Posts: 11
Joined: Sun Nov 13, 2022 3:16 am

Re: cant get sht-30 sensor to work

Post by dfghdfrtdtr »

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

User avatar
adafruit2
 
Posts: 22144
Joined: Fri Mar 11, 2005 7:36 pm

Re: cant get sht-30 sensor to work

Post by adafruit2 »

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 :(

User avatar
dfghdfrtdtr
 
Posts: 11
Joined: Sun Nov 13, 2022 3:16 am

Re: cant get sht-30 sensor to work

Post by dfghdfrtdtr »

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?

User avatar
dfghdfrtdtr
 
Posts: 11
Joined: Sun Nov 13, 2022 3:16 am

Re: cant get sht-30 sensor to work

Post by dfghdfrtdtr »

That was the wrong link https://imgur.com/a/LOrUTNW heres the link to show the pins i got continuity from to the sensor

User avatar
dfghdfrtdtr
 
Posts: 11
Joined: Sun Nov 13, 2022 3:16 am

Re: cant get sht-30 sensor to work

Post by dfghdfrtdtr »

Just a follow up on this
adafruit2 wrote: Sun Dec 04, 2022 6:18 pm 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 :(
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?

User avatar
adafruit2
 
Posts: 22144
Joined: Fri Mar 11, 2005 7:36 pm

Re: cant get sht-30 sensor to work

Post by adafruit2 »

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

User avatar
dfghdfrtdtr
 
Posts: 11
Joined: Sun Nov 13, 2022 3:16 am

Re: cant get sht-30 sensor to work

Post by dfghdfrtdtr »

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?

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”