Close

[Trinket sensing] Grove moisture sensor

A project log for Home automation - Trinket Sensing

TJTJ 06/05/2015 at 07:310 Comments

Buy

http://www.seeedstudio.com/depot/Grove-Moisture-Sensor-p-955.html

Wiki

http://www.seeedstudio.com/wiki/Grove_-_Moisture_Sensor

Hardware

Vcc3.3 V
GndGnd
SigTrinket A1 (Analog 1)

Arduino code

#define PIN_MOISTURE A1

void setup(void)  {
  pinMode(PIN_MOISTURE, INPUT);
}

void loop(void)  {
 int moistureVal = analogRead(PIN_MOISTURE);
}


Discussions