Grove - Capacitive Moisture Sensor (Corrosion-Resistant)

I ended up calibrating the sensor myself, using the values I get when emerged, and dry.
From there I used the map function:

int max = 760;
int min = 530;

int moisture = = analogRead(sensorPin); 

int percentage = map(moisture, min, max, 0, 100);

But I’m not sure if the measure is relevant at all.

1 Like