Connecting Your Device
Materials Needed
- Raspberry Pi 4
- Adafruit 4026 Stemma Soil Sensor
- 4-pin JST-PH-to-female head pin cables x4
Hardware Setup
- Insert the moisture sensor into soil.
- Connect the JDT Ph connector to the sensor.
- Connect the female connector to the Raspberry Pi GPIO prongs.
These metal prongs are denoted below:
Raspberry Pi Setup
- Go into the Raspberry Pi's config mode by entering the following command in a terminal:
sudo raspi-config
- Choose "Interfacing Options"
- Choose "I2C"
- Choose "Yes"
- Choose "Finish"
- Time to see if the Pi is detecting your sensor. If it does it will display 48. Enter the below command:
sudo i2cdetect -y 1