Datasheet
4
Test Code
//*****************************************************************************
void setup() {
Serial.begin(9600); //set baud rate to 9600
}
void loop() {
int val;//define the function val
val = analogRead(A0); //set the analog value detected by the soil sensor to
val
Serial.println(val); //serial port prints out the analog value detected by soil






