A pure generic I2C crate for the Adafruit STEMMA soil moisture sensor
use stemma_soil_moisture_sensor::prelude::*;
fn main() -> Result<(), SoilMoistureSensorError> {
// Setup your I2C and import relevant delay
let i2c = ...;
let moisture = SoilSensor::new(i2c, Delay).with_units(TemperatureUnit::Fahrenheit);
let temp = moisture.temperature()?;
let moist = moisture.moisture()?;
}