SHT41I not working

HI,

I have this home-made (JLCPCB) PCB with an SHT41I connected to GPIOs 21 and 22
image

Full project/schematics/layout/etc: electronics-homeassistant-lightscontroll/PCB/schematics-v17-safety-jlcpcb at main · crgarcia12/electronics-homeassistant-lightscontroll · GitHub

I am using this configuration:

i2c:
  id: bus_a
  sda: 21
  scl: 22
  scan: true

sensor:
  - platform: sht4x
    id: temp_sensor
    i2c_id: bus_a
    temperature:
      name: "Temperature"
    humidity:
      name: "Relative Humidity"

But in ESPHome I see Unknown:
image

Do you have any ideas on where I could start the troubleshooting of this?

Thanks!

ESP logs?

Thank you Tom!
When I restart the device, this is what I can see related to I2C:

[20:59:10][C][i2c:028]: I2C Bus:
[20:59:10][C][i2c:028]: I2C Bus:
[20:59:10][C][i2c:029]:   SDA Pin: GPIO21
[20:59:10][C][i2c:030]:   SCL Pin: GPIO22
[20:59:10][C][i2c:031]:   Frequency: 50000 Hz
[20:59:10][I][i2c:033]: Scanning i2c bus for active devices...
[20:59:10][I][i2c:049]: Found no i2c devices!
...
[20:59:49][W][i2c:070]: Received NACK on transmit of address 0x44
[20:59:49][W][i2c:086]: Requesting 6 bytes from 0x44 failed!
[20:59:49][D][sht4x:083]: Sensor read failed

Is there anywhere else I can search for more logs?

Thanks!

The log is quite clear. The ESP is looking for the device on those pins but can’t find them. So either you have wrong pins ( all boards can have different and confusing number systems), device is broken or power. First you need to check the pins

1 Like

I replaced the component and now it works (I think) - temp is not as accurate as I was expecting, but that is a different problem

Thanks!!

PS: I have no clue how can i probe the pins of such a small component, will have to do some research