
I2CSoilMoistureSensor Arduino Library
Arduino C++ library by Apollon77 for interfacing with the Chirp/Catnip I2C Soil Moisture Sensor. Provides methods for reading moisture, temperature, and light, plus sleep mode and multi-sensor support.
Overview
A well-maintained Arduino library that wraps the I2C protocol for the Chirp / Catnip Electronics soil moisture sensor. Created by Ingo Fischer (Apollon77), it is the most widely used library for this sensor in the Arduino ecosystem.
Features
- Read soil moisture (capacitance), temperature, and ambient light
- Support for sensor sleep mode to conserve power (firmware 2.3+)
- Single library instance can address multiple sensors on the same I2C bus
- Change the I2C address of individual sensors programmatically
- ESP8266 compatibility with clock stretch workaround (
Wire.setClockStretchLimit(2500))
Getting Started
Install via the Arduino Library Manager by searching for "I2CSoilMoistureSensor". The library includes ready-made examples for reading all three sensor values.





