Humidity sensor- xiaomi mijia?

Might try hooking that SHT35 to a raspberrypi or something later if I get time, btw have you used it?
I have not, but I have used few cheap ones. Yes you can connect to raspberrypi over i2c protocol. Only 4 wires will be needed.

Sensor PinConnect to Raspberry Pi
VCC3.3V (Pin 1)
GNDGND (Pin 6)
SDAGPIO 2 (Pin 3)
SCLGPIO 3 (Pin 5)

Enable I²C on Raspberry Pi​

  1. Run sudo raspi-config
  2. Navigate to: Interface Options → I2C → Enable
  3. Reboot if prompted
  4. Verify with: i2cdetect -y 1

You should see an entry like 0x44 (default I²C address of SHT35).



Example Code (Python)

You can use the Adafruit CircuitPython library. (works for SHT31, SHT35, etc.)

pip install adafruit-circuitpython-sht31d

Python:
import time
import board
import adafruit_sht31d

i2c = board.I2C()  # uses board.SCL and board.SDA
sensor = adafruit_sht31d.SHT31D(i2c)

while True:
    print(f"Temperature: {sensor.temperature:.2f} °C")
    print(f"Humidity: {sensor.relative_humidity:.2f} %")
    time.sleep(1)