This sensor is pretty simple! Instead of headers, we have a 4-pin JST PH connector. This makes it easy to plug in a cable that goes to another board or prototyping kit.

Looking at the image above, from top to bottom, the pinout is

  • GND - power and logic ground
  • VIN - 3-5V DC (use the same power voltage as you would for I2C logic)
  • I2C SDA - there's a 10K pullup to VIN
  • I2C SCL - there's a 10K pullup to VIN

We suggest these cables, they're even color coded!

Angled shot of STEMMA JST PH 4-Pin to Female Header Cable - 200mm.
This cable will let you turn a JST PH 4-pin cable port into 4 individual wires with high-quality 0.1" female sockets on the end. We're carrying these to match up with any of...
$1.50
In Stock
Angled shot of STEMMA JST PH 4-Pin to Male Header Cable - 200mm.
This cable will let you turn a JST PH 4-pin cable port into 4 individual wires with high-quality 0.1" male header plugs on the end. We're carrying these to match up with any...
$1.50
In Stock

To connect this STEMMA I2C device to STEMMA QT controllers, you can use the cable below.

Angled shot of 4-pin JST PH to JST SH Cable.
Are you a maker in the midst of a STEMMA dilemma? This 200mm long 4-wire...
$0.95
In Stock

On the back there are 3 SWD programming dots (see the schematic for the exact pinout in case you want to reprogram the chip).

I2C Addressing (using multiple sensors)

There's also two I2C address jumpers. You can have four different I2C addresses to use one microcontroller with four soil sensors. You can use 4 channel or even 8 channel multiplexers to have even more sensors on one microcontroller.

The default address is 0x36, but you can select between 0x36 and 0x39 inclusive by shorting AD0 (to add 1 to the address) and/or AD1 (to add 2 to the address)

This guide was first published on Nov 21, 2018. It was last updated on Apr 11, 2024.

This page (Pinouts) was last updated on Mar 27, 2024.

Text editor powered by tinymce.