Soil Moisture Sensor Module


12 in stock


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);


There are no reviews yet.

Be the first to review “Soil Moisture Sensor Module”

Your email address will not be published.