HTU21D-F and Raspberry Pi Zero W


#1

Hi guys,
I have recently bought a Pi Zero W and an HTU21D-F because I’d like to monitor temperature and humidity of my humidor.
I’ve decided to go for the HTU21D-F because it’s not so expensive and I found also a small python library.
But I’m not sure about the wiring to the Raspberry GPIO and I’d like to know if one day I can add a pHat display and show the current readings of the sensor (are going to be conflicts with the I2C?).
Thanks in advance for the replies.


#2

i2c is a shared bus. You can connect multiple devices as long as no two use the same address. I have 1 Pi that has 4 devices on i2c. A BMP180, SI1145, DS3231 and Sense Hat.


#3

Hi alphanumeric, thanks!
Do you know if the one below is the right way to connect the sensor to the GPIO?

VIN -> GPIO 1
GND -> GPIO 9
SCL -> GPIO 5
SDA -> GPIO 3


#4

My pinout card shows
3.3V is PIN 1
SDA is GPIO 2 > PIN 3
SCL is GPIO 3 > PIN 5
GPIO numbers don’t correlate to the physical PIN numbers.


#5

Oh ok, I’ll follow the pinout card.
Thanks


#6

This a good site for this type of stuff, https://pinout.xyz/#