Introduction
Parts of list
- Arduino UNO
- LED
- Resistor
- Flowerpot
- Wires
Connection
It is a very simple connection to the process.
Step 1: Connection for led to Arduino board
- Take the positive pin in the led connected to the digital pin of 10 to the Arduino board.
- Take the negative pin in the led connected to the Gnd to the Arduino board.
Step 2: Connection for the resistor to Flower pot and Arduino
- The positive side can be connected to the 5v of the Vcc from the Arduino board.
- The negative side can be connected to the Analog pin of the A0.
Step 3:
- Finally take a separate wire from the Gnd to the plant.
Programming
- const int VAL_PROBE = 0; // Analog pin 0
- const int MOISTURE_LEVEL = 250; // the value after the LED goes ON
- void setup() {
- Serial.begin(9600);
- }
- void LedState(int state) {
- digitalWrite(10, state);
- }
- void loop() {
- int moisture = analogRead(VAL_PROBE);
- Serial.println(moisture);
- if(moisture > MOISTURE_LEVEL) {
- LedState(HIGH);
- } else {
- LedState(LOW);
- }
- delay(100);
- }
Explanation
- In this case, the soil can be filled with water and we can check the soil level in the serial monitor.
- We can see another way of soil level using the potentiometer.
- In this case, it can work under the range to connect the wire in the soil and check the range.
Output

Figure 1:Output
Read more articles on Arduino:

Sr KarthigaPosted Feb 29, 2016, 7:37 PM
thank you asfend sir
Asfend YarPosted Feb 29, 2016, 2:24 PM
good
Sr KarthigaPosted Feb 23, 2016, 7:40 PM
thank you vignesh mani sir
Sr KarthigaPosted Feb 23, 2016, 7:40 PM
Thank you gowtham sir
Vignesh ManiPosted Feb 23, 2016, 4:43 PM
Nice one
Gowtham KPosted Feb 11, 2016, 11:06 AM
Good One
Sr KarthigaPosted Feb 11, 2016, 1:58 AM
Thank you sibeesh sir
Sibeesh VenuPosted Feb 11, 2016, 1:52 AM
Nice Share
Sr KarthigaPosted Feb 11, 2016, 1:48 AM
Thank you jaco
Jaco ZwartsPosted Feb 11, 2016, 1:33 AM
Thank you for sharing!
Sr KarthigaPosted Feb 10, 2016, 7:53 PM
Thank you santhakumar sir
Santhakumar MunuswamyPosted Feb 10, 2016, 2:05 PM
Thanks for good work
Sr KarthigaPosted Feb 10, 2016, 9:00 AM
Thank you raja sir
Raja TPosted Feb 10, 2016, 8:59 AM
Nice, Thanks for sharing
Sr KarthigaPosted Feb 10, 2016, 8:47 AM
Thank you kumaresh sir
Kumaresh RajalingamPosted Feb 10, 2016, 8:46 AM
Nice share
Sr KarthigaPosted Feb 10, 2016, 7:54 AM
online shoping
siva kumarPosted Feb 10, 2016, 7:22 AM
From where can we get this arduno processor??
Sr KarthigaPosted Feb 10, 2016, 5:30 AM
Thank you shubham kumar sir
Shubham KumarPosted Feb 10, 2016, 5:18 AM
Nice Share