Soil Moisture Sensor || Arduino Uno || Water Pump





                     ðŸ‘‰ Subscribe Our YouTube Channel For Latest Project Videos.


Program Code :-

 //www.youtube.com/c/TechnicalScientistRM
//Soil Moisture Relay Sensor 

int Relay = 13;    //relay module connected to arduino pin 13
int sensor = 8;     //soil sensor connected to arduino pin 8
int val; 
void setup() {
  pinMode(13,OUTPUT); //Set pin 13 as OUTPUT pin, to send signal to relay
  pinMode(8,INPUT); //Set pin 8 as input pin, to receive data from Soil moisture sensor.
}

void loop() { 
  val = digitalRead(8); 
  if(val == LOW) 
  {
  digitalWrite(13,HIGH); //if soil moisture sensor provides LOW value send LOW value to relay
  }
  else
  {
  digitalWrite(13,LOW); //if soil moisture sensor provides HIGH value send HIGH value to relay
  }
  delay(400);
}

Comments

  1. Nice article, Which you have shared about the Moisture Absorber. Your article is very informative and useful to know more about the Moisture Absorber. Thanks for sharing this article here. Moisture Absorber for Bathroom

    ReplyDelete
  2. Great job for publishing such a nice article about Moisture Absorber Pouch. Your article isn’t only useful but it is additionally really informative. Thank you because you have been willing to share information with us. Moisture Absorber

    ReplyDelete
  3. Nice stuff, it was nice to see this article about Moisture absorber. It was really appreciable. Thank you so much for sharing such an informative article about - moisture absorber manufacturers

    ReplyDelete
  4. You have shared a nice article here about desiccant Pouch. Your article is very informative and nicely describes desiccant bag. I am thankful to you for sharing this article here.

    ReplyDelete

Post a Comment