flux sdk  v01.05.00-3-gedf3296
Embedded C++ SDK
Loading...
Searching...
No Matches
flxDevSoilMoisture.h File Reference

Header file for the SparkFun Soil Moisture sensor device object. More...

#include "Arduino.h"
#include "flxDevice.h"

Classes

class  flxDevSoilMoisture
 A class to interface with the SparkFun Soil Moisture sensor. More...
 

Macros

#define kSoilMoistureDeviceName   "Soil Moisture Sensor"
 

Detailed Description

Header file for the SparkFun Soil Moisture sensor device object.

This file contains the definition of the device object for the SparkFun Soil Moisture sensor. Note - this is a GPIO device, which depends on the Soil Moisture Sensor being connected to defined GPIO pins. The required pins are VCC - a digitally controlled pin (to set low and high to power the sensor during reading), and Sensor - which is an ANALOG pin to read the sensor value. These pins are settable via properties.

The class provides methods to initialize the sensor, read moisture values, and calibrate the sensor for dry and wet states. It also includes properties to enable the sensor, set the GPIO pins, and retrieve the moisture values.

Date
2025-03-05
Version
1.0
Note
This file is part of the SparkFun Electronics Flux SDK.

Macro Definition Documentation

◆ kSoilMoistureDeviceName

#define kSoilMoistureDeviceName   "Soil Moisture Sensor"