Make Arduino Soil Moisture Sensor

Make Arduino Soil Moisture SensorArduino soil moisture sensor operation process,as follow

Step 1:Prepare components

1 - Breadboard
2 - LEDs
3 - 1k resistors
4 - Soil Moisture sensor kit
5 - Arduino Nano
6 - Assortment of jumpers. >>>buy electronic component

Step 2: Install Arduino

Step 3:Install LEDs

Connecting the LEDs;
Digital Pin 2 Green.
Digital Pin 3 Green.
Digital Pin 4 Green.
Digital Pin 5 Yellow.
Digital Pin 6 Red.
Connect the cathode or (-) lead from the LED to the Arduino.
Here you must put a 1k resistor between anode (+) and the positive rail.
Connect the anode or (+) lead from the LED to the + positive rail of the beadboard.

Step 4: Connecting Circuit

In this step we connect the power and ground rails.
From the arduino ground pin connect a short jumper to the blue rail on the breadboard.
From the arduino 5v Pin we connect a short jumper to the red rail on the breadboard.
Bond both rails together.

Step 5: The Moisture Sensor

The moisture has very well defined pin out.
Connect the ground to the ground rail, power to the power rail.
Connect the "AC" Labeled pin on the moisture sensor to analog input 0 pin on the Arduino.
note:the moisture sensor I have has two outs one labeled "AC" and one labeled "DC". The "AC", is a serial signal 0-5 volts that when fully dry it outputs 5 volts, when fully wet, 0 volts. The "DC", is configured with the trim pot and is brought high when the moisture level reaches a desired point.

Step 6: Connect up the Arduino and load the code
The code:Code