//House Plant Monitoring project determining soil moisture value const int moisturePin = A1; // Grove Moisture sensor connected to A1 on the Grove Shield const int ledPin = 2; int moisturValue = 0; int tooDryValue = 250; void setup() { Serial.begin(9600); pinMode(ledPin,OUTPUT); digitalWrite(ledPin,LOW); } void loop() { moisturValue = analogRead(moisturePin); Serial.print("Moisture sensor = " ); Serial.println(moisturValue); //Check the Value for with Dry sand and then with Wet Sand if(moisturValue < tooDryValue) { digitalWrite(ledPin,HIGH); } else{ digitalWrite(ledPin,LOW); } delay(3000); }