Free Shipping in Canada on Orders Over $50!

Soil Moisture Sensor Module

Soil Moisture Sensor Module

  • $5.47
  • Save $4.48

Only 4 left!

Soil Moisture Sensor Code


int led_pin =13;
int sensor_pin =8;
void setup() {
  pinMode(led_pin, OUTPUT);
  pinMode(sensor_pin, INPUT);
}
void loop() {
  if(digitalRead(sensor_pin) == HIGH){
    digitalWrite(led_pin, HIGH);
  } else {
    digitalWrite(led_pin, LOW);
    delay(1000);
  }
}

We Also Recommend


where to buy soil moisture sensor in canada

soil moisture sensor canada

buy soil moisture sensor canada