SHT-30 Help

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Yoshi824
 
Posts: 7
Joined: Tue Apr 12, 2022 9:19 pm

SHT-30 Help

Post by Yoshi824 »

Hello, I got an SHT-30 Mesh-protected Weather-proof Temperature/Humidity Sensor a while back and i finally got a change to make a project with it. I'm using an esp8266 to connect it to home assistant. I'm really sure that I have the hardware setup properly as well as the code. i just keep getting an unable to connect to sensor error. So my only question is, is there a way to test the sensor directly to see if its functioning properly to make sure I didn't blow up the sensor by mistake or maybe I'm just unlucky and have a bad sensor. If I give it power should I see something on the other pins? Thank y0u for the help :)

User avatar
freddyboomboom
 
Posts: 267
Joined: Wed Feb 16, 2022 7:55 pm

Re: SHT-30 Help

Post by freddyboomboom »

Either wiring or code.

Ensure your code is using the correct pins that the sensor is connected to.

Ensure you're setting the pins up as i2c or SPI, whichever you're using on your sensor.

Ensure that you're using the correct i2c address for the sensor you're using, if you're using i2c.

If you're using Adafruit products, either the product number or a link to the product page would be nice.

If you're using Adafruit products, try the Learn Guides for them.

We have no clue what language you're programming in... An example of your failing code and the exact output of the error message would be helpful as well.

User avatar
Yoshi824
 
Posts: 7
Joined: Tue Apr 12, 2022 9:19 pm

Re: SHT-30 Help

Post by Yoshi824 »

Here is my code, I should note that this config did work at some point. I'm thinking that the sensor is bad and would really like to know if there is a way to test it by itself to see if it is. I'm Pretty confident that my wiring is good.

Code: Select all

esphome:
  name: outdoor-temp-humidity

esp8266:
  board: esp01_1m

i2c:
  sda: GPIO5
  scl: GPIO4
  scan: true
  id: bus_a

sensor:
  - platform: sht3xd
    temperature:
      name: "Outdoor Temperature"
    humidity:
      name: "Outdoor Humidity"
    address: 0x47
    update_interval: 5s

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
  password: ""

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Outdoor-Temp-Humidity"
    password: "UIVkoRZ0ng0L"

captive_portal:
    
https://www.adafruit.com/product/4099

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

Return to “General Project help”