Arduino – Soil Moisture Sensor

Analog Soil Moisture Sensors allow you to determine how dry soil is and then trigger an event such an LED turning , or a water pump being turned on.

Note: Give the sensor a few minutes to stabilize its readings.

Functional Parts in the Project:

#define soilSensor A0

void setup() {

void loop() {
  int sensorValue = analogRead(soilSensor);

Be the first to comment

Leave a Reply