شحن مجاني للأوردرات فوق
1000 ج
رمضان كريم
Corrosion-Resistant Humidity Detection for Plants and Agricultural Applications
The Capacitive Soil Moisture Sensor measures water content in soil by detecting changes in capacitance rather than resistance (like traditional probes). This makes it resistant to corrosion and provides more accurate, long-lasting measurements for smart gardening and agricultural systems.

No exposed metal electrodes
0-100% volumetric water content
Analog or digital output
Low power consumption
| Operating Voltage | 3.3V – 5.5V DC |
|---|---|
| Output Signal | Analog 0-VCC (also digital option) |
| Measurement Range | 0% (dry) to 100% (water) |
| Probe Material | Corrosion-resistant PCB |
| Current Consumption | <5mA during measurement |
| Interface | 3-pin (VCC, GND, OUT) |
| Dimensions | 60mm × 20mm × 5mm |
| Cable Length | 1.5m (standard) |
| Wire Color | Function | Arduino Connection |
|---|---|---|
| Red | VCC | 3.3V/5V |
| Black | GND | GND |
| Yellow | OUT | Analog Pin (A0-A5) |

// Basic Connection: // Red → Arduino 5V // Black → Arduino GND // Yellow → Arduino A0
const int sensorPin = A0;
void setup() {
Serial.begin(9600);
}
void loop() {
int sensorValue = analogRead(sensorPin);
int moisturePercent = map(sensorValue, 0, 1023, 0, 100);
Serial.print("Raw Value: ");
Serial.print(sensorValue);
Serial.print(" | Moisture: ");
Serial.print(moisturePercent);
Serial.println("%");
delay(1000);
}
// After calibration: int moisturePercent = map(sensorValue, dryValue, wetValue, 0, 100);

if(moisturePercent < 30) {
digitalWrite(relayPin, HIGH);
delay(2000);
digitalWrite(relayPin, LOW);
}
#include <SD.h>
File dataFile = SD.open("datalog.txt", FILE_WRITE);
dataFile.println(moisturePercent);
dataFile.close();
#include <ESP8266WiFi.h>
WiFiClient client;
client.print("GET /update?field1=");
client.print(moisturePercent);
No account yet?
Create an Account
Recent Comments