Earthworms are highly sensitive organisms – temperatures just 7 degrees above the safe range or moisture outside the 60-80% window can wipe out an entire worm population within hours. A vermicompost monitoring temperature moisture tracker built on Arduino constantly watches your worm bed conditions and alerts you before damage occurs. This guide covers sensor selection, circuit wiring, Arduino code, and weatherproof housing for outdoor Indian vermicompost operations.
Table of Contents
- Why Precise Monitoring Matters
- Sensor Selection
- Circuit Wiring
- Arduino Code
- Alerts and Automation
- Weatherproof Installation
- Frequently Asked Questions
Why Precise Monitoring Matters
Indian red wigglers (Eisenia fetida) thrive at 15-28 degrees Celsius with 60-80% moisture. In Indian summer peak months – April through June – ambient temperatures in Rajasthan, Vidarbha, Gujarat, and north Indian plains routinely exceed 42 degrees Celsius. An unshaded outdoor worm bed can reach lethal internal temperatures within 2 hours of afternoon sun exposure. Conversely, north Indian winters (December-January) push temperatures below 10 degrees Celsius, causing worm dormancy and halting decomposition for weeks.
Manual checking twice daily is impractical for large operations or farmers who work the fields. The vermicompost monitoring temperature moisture tracker runs 24 hours a day and sends alerts only when intervention is needed – saving time and preventing costly worm losses.
Sensor Selection
| Sensor | Measures | Pros | Cons | Cost (INR) |
|---|---|---|---|---|
| DS18B20 waterproof | Temperature only | Accurate +-0.5C, IP67 | No moisture | Rs 80-150 |
| DHT22 | Air temp + humidity | Cheap, easy | Not for buried use | Rs 120-180 |
| SHT10 | Soil temp + moisture | Combined probe, accurate | More expensive | Rs 400-600 |
| Capacitive moisture | Moisture % | Long-life, no corrosion | Needs calibration | Rs 60-120 |
| YL-69 resistive | Moisture | Cheapest | Corrodes in 3-6 months | Rs 30-60 |
Best combination: DS18B20 waterproof (temperature) + capacitive moisture sensor. Total under Rs 300 and lasts 2+ years buried in compost.
Circuit Wiring
Connect to Arduino Nano or Uno:
- DS18B20: Red to 5V, Black to GND, Yellow (data) to D2 with 4.7k ohm pull-up resistor to 5V
- Capacitive Moisture Sensor: VCC to 3.3V, GND to GND, AOUT to A0
- I2C LCD 16×2: VCC to 5V, GND to GND, SDA to A4, SCL to A5
- Buzzer: Positive to D8, negative to GND
- Optional SIM800L: TX to D10, RX to D11 via SoftwareSerial
Power from 5V USB bank or 12V solar battery via 7805 regulator. Use IP65-rated junction boxes (Rs 60-150 at electrical supply shops) for outdoor installation.
Arduino Code
#include <OneWire.h>
#include <DallasTemperature.h>
#include <LiquidCrystal_I2C.h>
#define ONE_WIRE_BUS 2
#define MOISTURE_PIN A0
#define BUZZER_PIN 8
// Optimal ranges for Eisenia fetida
#define TEMP_MIN 15.0
#define TEMP_MAX 28.0
#define MOIST_MIN 40
#define MOIST_MAX 80
OneWire ow(ONE_WIRE_BUS);
DallasTemperature sensors(&ow);
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
Serial.begin(9600);
sensors.begin();
lcd.init();
lcd.backlight();
pinMode(BUZZER_PIN, OUTPUT);
lcd.clear();
lcd.print("Vermi Monitor v1");
delay(2000);
}
int readMoisturePct() {
int raw = analogRead(MOISTURE_PIN);
// Calibrate for your sensor: dry ~800, saturated ~300
return constrain(map(raw, 800, 300, 0, 100), 0, 100);
}
void beepAlert(int n) {
for(int i = 0; i < n; i++) {
digitalWrite(BUZZER_PIN, HIGH); delay(200);
digitalWrite(BUZZER_PIN, LOW); delay(200);
}
}
void loop() {
sensors.requestTemperatures();
float temp = sensors.getTempCByIndex(0);
int moist = readMoisturePct();
bool tWarn = (temp < TEMP_MIN || temp > TEMP_MAX);
bool mWarn = (moist < MOIST_MIN || moist > MOIST_MAX);
lcd.setCursor(0, 0);
lcd.print("T:"); lcd.print(temp, 1);
lcd.print("C "); lcd.print(tWarn ? "WARN" : " ");
lcd.setCursor(0, 1);
lcd.print("M:"); lcd.print(moist);
lcd.print("% "); lcd.print(mWarn ? "WARN" : " ");
Serial.print("Temp:"); Serial.print(temp);
Serial.print("C Moisture:"); Serial.println(moist);
if(tWarn || mWarn) beepAlert(3);
delay(30000); // Check every 30 seconds
}
Alerts and Automation
Extend the monitoring system with automatic responses:
- Temperature too high: Relay-activated misting nozzle or servo-driven shade cloth
- Temperature too low: Switch on an incandescent bulb inside insulated cover via 5V relay
- Moisture too low: Activate 12V submersible pump to dampen bed surface automatically
- SMS alerts: SIM800L module sends message to farmer phone when any threshold crossed
#include <SoftwareSerial.h>
SoftwareSerial gsm(10, 11); // RX, TX
void sendSMS(String num, String msg) {
gsm.println("AT+CMGF=1"); delay(500);
gsm.println("AT+CMGS="" + num + """); delay(500);
gsm.print(msg);
gsm.write(26); // Ctrl+Z to send
delay(3000);
}
// Example: sendSMS("+919876543210",
// "ALERT: Worm bed temp 36C - activate cooling now!");
Weatherproof Installation
Indian monsoons and summer heat require serious weatherproofing:
- IP65 polycarbonate junction box (200x150x75mm, Rs 80-150 at electrical supply stores)
- Cable glands (Rs 10-20 each) for sensor wires entering the enclosure
- Mount in shade – direct sun raises internal temperature 20-30 degrees above ambient
- Apply conformal coating spray (Rs 200-400) to capacitive sensor PCB edges
- Wrap DS18B20 probe wire joints with self-amalgamating tape
- Insert probes at 15-20cm depth – mid-bed where worm activity is highest
Power: 12V 7Ah sealed lead-acid battery + 10W solar panel + 10A PWM charge controller provides 7-10 days monsoon autonomy.
Frequently Asked Questions
At what temperature do Indian earthworms start dying?
Eisenia fetida shows heat stress above 32 degrees Celsius and dies within 2-4 hours above 35 degrees. Indian summers in Rajasthan and central India regularly create these conditions in unshaded outdoor beds. Shade cloth (50% shade rating), water misting, and thermal insulation with jute sacks or coconut coir are essential countermeasures from March through June.
How often should I physically check the compost bed?
With an automated monitoring system sending alerts, weekly physical inspection is sufficient under normal conditions. Increase to daily checks during peak summer (April-June) or unusual weather events. The monitoring system handles the 24×7 surveillance, alerting you only when intervention is actually needed.
Can one Arduino monitor multiple worm beds?
Yes – Arduino Mega supports 16 analog inputs for moisture sensors and can address 126 DS18B20 temperature sensors on a single OneWire bus using individual 64-bit addresses. One Mega can monitor 8-10 beds simultaneously with results displayed on a scrolling LCD or sent via SIM800L as a consolidated SMS report every hour.
What is the ideal moisture for fastest decomposition?
65-75% moisture gives fastest vermicomposting rates. At this level, worms process organic material optimally and decomposition completes in 45-60 days for most feedstocks (vegetable scraps, cow dung, garden waste). The classic test: squeeze a handful – it should feel like a wrung sponge with just a few drops of water expelled.
Do capacitive moisture sensors work in compost versus soil?
Yes – capacitive sensors measure dielectric constant, which changes with water content regardless of the substrate. However, compost has different calibration curves than mineral soil due to its high organic matter content. Calibrate specifically for your compost by taking readings at known moisture levels (weigh sample, oven dry at 105 degrees Celsius, reweigh) to establish your 0% and 100% calibration points.
Add comment