Soil Moisture Sensor with Arduino- Interface and Coding
submitted by kshitijon 02/28/141
Arduino Code:
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
}
void loop() {
// read the input on analog pin 0:
int sensorValue = analogRead(A0);
Serial.println(sensorValue);
delay(100);
}