Soil Moisture Sensor With Watering Warning
by iotgurulive in Circuits > Sensors
1261 Views, 4 Favorites, 0 Comments
Soil Moisture Sensor With Watering Warning
![sensor2.jpg](/proxy/?url=https://content.instructables.com/F5Z/8LPQ/K29B4Q3H/F5Z8LPQK29B4Q3H.jpg&filename=sensor2.jpg)
![weekly-values.png](/proxy/?url=https://content.instructables.com/F19/SAA8/K29B4Q2M/F19SAA8K29B4Q2M.png&filename=weekly-values.png)
We are creating a device that measures soil moisture, based on a WEMOS D1 mini and a Capacitive Soil Moisture sensor.
With cloud integration the measurement of the sensor sent to the IoT Guru Cloud, where we get fancy graphs and we can set a warning that we need to watering the plant.
Supplies
WEMOS D1 mini
Capacitive Soil Moisture sensor
Connection of the Hardware
![sensor.jpg](/proxy/?url=https://content.instructables.com/F6A/W503/K29B4Q3E/F6AW503K29B4Q3E.jpg&filename=sensor.jpg)
The Capacivite Soil Moisture sensor has three pin:
- Ground
- Vcc
- Analog output
You can connect this pins to the WEMOS D1 mini in same order:
- D5
- D0
- A0
Arduino Source Code
The source code is contains an IoT Guru Cloud integration, you can check out our Tutorials about the integration. You will need:
userShortId
deviceShortId
deviceKey
nodeShortId
- fieldName
Downloads
Check the Graph in Your Account
![daily_values.png](/proxy/?url=https://content.instructables.com/F26/APD6/K29B4Q34/F26APD6K29B4Q34.png&filename=daily_values.png)
If your device can connect and can send data, you will be see something like this:
https://iotguru.live/field/9e8df7a0-f01e-11e9-a95e-071b2aa4809f/analog
Watering Warning
![iotguru_alert.png](/proxy/?url=https://content.instructables.com/FWX/SL0B/K29B4Q3B/FWXSL0BK29B4Q3B.png&filename=iotguru_alert.png)
You can set range alert and the IoT Guru Cloud will be alert you whenever the measurement is less than the minimum or greater than the maximum.