

Adafruit 3695 is a versatile electronic component designed and manufactured by Adafruit Industries, a company renowned for its open-source electronics and educational kits. This specific component is a STEMMA Soil Sensor that measures soil moisture levels and temperature, making it ideal for environmental monitoring and agricultural projects. Its plug-and-play design ensures ease of use, even for beginners.








The Adafruit 3695 is a capacitive soil moisture sensor with an integrated temperature sensor. Below are its key technical details:
The Adafruit 3695 features a 4-pin JST PH connector for easy interfacing. Below is the pinout:
| Pin | Name | Description |
|---|---|---|
| 1 | VIN | Power input (3.3V to 5V DC) |
| 2 | GND | Ground connection |
| 3 | SDA | I2C data line for communication with microcontrollers |
| 4 | SCL | I2C clock line for communication with microcontrollers |
#include <Wire.h>
#include "Adafruit_STEMMA_Soil_Sensor.h"
// Create an instance of the soil sensor
Adafruit_STEMMA_Soil_Sensor soilSensor;
void setup() {
Serial.begin(9600); // Initialize serial communication
while (!Serial); // Wait for the serial monitor to open
// Initialize the soil sensor
if (!soilSensor.begin()) {
Serial.println("Failed to find the STEMMA Soil Sensor!");
while (1); // Halt execution if the sensor is not detected
}
Serial.println("STEMMA Soil Sensor initialized successfully.");
}
void loop() {
// Read soil moisture level
float moisture = soilSensor.readCapacitance();
// Read temperature in Celsius
float temperature = soilSensor.readTemperature();
// Print the readings to the serial monitor
Serial.print("Soil Moisture: ");
Serial.print(moisture);
Serial.println(" units");
Serial.print("Temperature: ");
Serial.print(temperature);
Serial.println(" °C");
delay(1000); // Wait 1 second before the next reading
}
Sensor Not Detected:
Inaccurate Readings:
No Data in Serial Monitor:
Serial.begin(9600) matches the baud rate in the serial monitor.By following this documentation, users can effectively integrate the Adafruit 3695 into their projects and troubleshoot any issues that arise.