Plant.txt

  • Uploaded by: Bhupesh Patil
  • 0
  • 0
  • April 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Plant.txt as PDF for free.

More details

  • Words: 45
  • Pages: 1
void setup() { Serial.begin(9600); pinMode(A0, INPUT); pinMode(3,OUTPUT); } void loop() { int SensorValue = analogRead(A0); //take a sample Serial.print(SensorValue); Serial.print(" - "); if(SensorValue >= 600) { Serial.println("Sensor is not in the Soil or DISCONNECTED"); digitalWrite(3,HIGH); } else { Serial.println("Soil is HUMID"); digitalWrite(3,LOW);

}

}

delay(50);

More Documents from "Bhupesh Patil"

Plant.txt
April 2020 6
Key Points.docx
December 2019 19
Major Project Report.docx
December 2019 16
09 Notice Students.pdf
November 2019 7