This time, I connected the sensor to the Raspberry Pie using a soldering iron!
It's my first time using a soldering iron, and it's more difficult than I expected.
1. Connecting the sensor to the Raspberry Pi
-1. Attach the pin header to the sensor
The sensor and the pin header were included with the product I bought on Amazon.

Insert the shorter end of the pin header into the sensor and secure it with solder from the back.

It's my first time using a soldering iron... (It was my absolute first time! I had never even touched one at school.)

Be careful not to let the solder bridge adjacent pins.
-2. Connect the cables.
I used female-to-female jumper wires to connect the sensor to the Raspberry Pi.
The physical pins on the Raspberry Pi are numbered starting from the top left.

This time, I connected them as shown below.
SHT31 VIN → Pi pin1(3.3V)
SHT31 GND → Pi pin6(GND)
SHT31 SCL → Pi pin5(SCL)
SHT31 SDA → Pi pin3(SDA)
-3. Confirm the connection
Connect to the Raspberry Pi using PowerShell, just like last time.
Run the following command to check the connection.
sudo i2cdetect -y 1
If "44" or "45" appears, the Raspberry Pi is likely recognizing the sensor correctly.
The sensor was not detected....
I checked the wiring and changed the cables, but it still did not work.
Maybe I damaged the sensor or the board with too much heat while soldering...?
I'm considering buying a replacement sensor.



Top comments (0)