#21 - Soil water/moisture sensors pt1 - free sample from ICStation
Channel: Crazy-Logic
Date: 20/04/2018

In this video I show connecting up and then receiving some initial data from a soil moisture sensor. The two sensors I have were free samples from ICStation - http://www.icstation.com/soil-humidity-moisture-water-detection-sensor-hygrometer-module-arduino-p-3274.html 

Code: 

int sensorpin = A0;   
int sensorvalue = 0;  
int delaytime = 1000;

void setup() {
  Serial.begin(9600);
}

void loop() {
  sensorvalue = analogRead(sensorpin);
  delay(10);
  Serial.println(sensorvalue);
  delay(delaytime);
}

------------------------------------------- Get Social -------------------------------------------
Facebook: https://www.facebook.com/crazylogica
Twitter: https://twitter.com/crazy__logic
Instagram: https://www.instagram.com/crazy__logic
Github: https://github.com/crazy-logic
Twitch: https://www.twitch.tv/crazy__logic
Webby: http://www.crazy-logic.co.uk.