Capacitive Soil Moisture Sensor V2.0
Rs. 50.00 Rs. 60.00
- Product Code: SEN-SOIL
- SKU -
- Availability: In Stock
- Price in reward points: 1
- For Bulk Order
9962060070
Quick support on WhatsApp (+919962060070) only between morning 11am-4pm, no call will be answered
SPECIFICATIONS: | |
Operating Voltage | 3.3 ~ 5.5 VDC |
Output Voltage | 0 ~ 3.0VDC |
Operating Current | 5mA |
Interface | PH2.54-3P |
OVERVIEW:
-Supports 3-Pin Gravity Sensor interface
-Analog output
Applications:
-Garden plants
-Moisture detection
-Intelligent agriculture
PACKAGE INCLUDES:
1 PCS x Capacitive Soil Moisture Sensor V2.0
/***************************************************
This example reads Capacitive Soil Moisture Sensor.
Created 2015-10-21
By berinie Chen <bernie.chen@dfrobot.com>
//SOURCE CODE TAKEN FROM BELOW LINK
//https://wiki.dfrobot.com/Capacitive_Soil_Moisture_Sensor_SKU_SEN0193
GNU Lesser General Public License.
See <http://www.gnu.org/licenses/> for details.
All above must be included in any redistribution
****************************************************/
/***********Notice and Trouble shooting***************
1.Connection and Diagram can be found here: https://www.dfrobot.com/wiki/index.php?title=Capacitive_Soil_Moisture_Sensor_SKU:SEN0193
2.This code is tested on Arduino Uno.
3.Sensor is connect to Analog 0 port.
****************************************************/
const int AirValue = 520; //you need to replace this value with Value_1
const int WaterValue = 260; //you need to replace this value with Value_2
int intervals = (AirValue - WaterValue)/3;
int soilMoistureValue = 0;
void setup() {
Serial.begin(9600); // open serial port, set the baud rate to 9600 bps
}
void loop() {
soilMoistureValue = analogRead(A0); //put Sensor insert into soil
if(soilMoistureValue > WaterValue && soilMoistureValue < (WaterValue + intervals))
{
Serial.println("Very Wet");
}
else if(soilMoistureValue > (WaterValue + intervals) && soilMoistureValue < (AirValue - intervals))
{
Serial.println("Wet");
}
else if(soilMoistureValue < AirValue && soilMoistureValue > (AirValue - intervals))
{
Serial.println("Dry");
}
delay(100);
}
https://youtu.be/pdGRs7GXBeE
15 days