I have a Adafruit Soil Sensor - I²C Capacitive Moisture Sensor
The Capacitive value should be between 0 and 2000
I am getting the correct measurement on my seeed xiao.
Does anyone see anything in the code below that would be causing this reading issue with particle?
#include "Adafruit_Seesaw.h"
Adafruit_Seesaw ss;
void setup()
{
Serial.begin(115200);
while (!Serial)
{
delay(10);
}
Serial.println("seesaw Soil Sensor example!");
if (!ss.begin(0x36))
{
Serial.println("ERROR! seesaw not found");
while (1)
;
}
else
{
Serial.print("seesaw started! version: ");
Serial.println(ss.getVersion(), HEX);
}
}
int last_x = 0, last_y = 0;
void loop()
{
uint16_t tempC = ss.getTemp();
uint16_t capread = ss.touchRead();
Serial.print("Temperature: ");
Serial.print(tempC);
Serial.println("*C");
Serial.print("Capacitive: ");
Serial.println(capread);
delay(100);
}