{"product_id":"kit-greenhouse-rain-logger-kit-with-esp32-plus-ultrasonic","title":"Greenhouse Rain Logger Kit with ESP32 + Ultrasonic","description":"\u003ch1\u003eESP32 Greenhouse Rain Logger Kit — Automated Tank Monitor, First-Flush Control \u0026amp; Rain Event Logging\u003c\/h1\u003e\n\n\u003cp class=\"value-summary\"\u003eEvery part needed, pre-tested for compatibility, with an AI build companion trained on this exact project. Shipped from Bengaluru in 3-5 days.\u003c\/p\u003e\n\n\u003cdiv class=\"specs-strip\"\u003e\n  \u003cspan\u003e\u003cstrong\u003eDifficulty:\u003c\/strong\u003e Advanced\u003c\/span\u003e\n  \u003cspan\u003e\u003cstrong\u003eBuild Time:\u003c\/strong\u003e 10-12 hrs\u003c\/span\u003e\n  \u003cspan\u003e\u003cstrong\u003eAge:\u003c\/strong\u003e 25+\u003c\/span\u003e\n  \u003cspan\u003e\u003cstrong\u003eSkill:\u003c\/strong\u003e Sensor integration, relay logic, data logging, and power management\u003c\/span\u003e\n\u003c\/div\u003e\n\n\u003cp\u003eWhen you’re managing a greenhouse, every litre of rainwater matters — and so does preventing contaminated first-flush runoff from entering your irrigation tank. With this kit, you’ll build a standalone logger that uses dual HC-SR04 ultrasonic sensors to measure tank level, triggers a motorised valve to divert the initial rainwater, switches the pump over to mains backup when the tank runs low, and records every rain event with timestamped data on a microSD card. It’s a rugged, field-deployable system built around the ESP32, with battery backup and an OLED display for live readings.\u003c\/p\u003e\n\n\u003ch2\u003eWhat You'll Build\u003c\/h2\u003e\n\u003cp\u003eYou’ll assemble a complete rainwater management controller inside a waterproof enclosure. Once programmed, the device sits between your greenhouse roof gutters and the collection tank. It continuously monitors tank fill level, diverts the first 1–3 mm of rain to waste, then opens the inlet to the tank. When the tank level drops below a set threshold (e.g., 20%), it drives a 4-channel relay to start the mains backup pump and logs the switch event. All readings — tank level, rain sensor status, and pump state — appear on a 0.96-inch OLED and are written to an SD card with DS3231 real‑time clock stamps. The dual HC‑SR04 sensors give you redundancy and let you average out sloshing-induced errors.\u003c\/p\u003e\n\n\u003ch2\u003eWhat You'll Learn\u003c\/h2\u003e\n\u003cul\u003e\n  \u003cli\u003eInterfacing two HC-SR04 ultrasonic sensors with an ESP32 and handling timed distance reads\u003c\/li\u003e\n  \u003cli\u003eImplementing first-flush logic with a rain sensor and relay-controlled solenoid valve\u003c\/li\u003e\n  \u003cli\u003eProgramming automatic pump changeover: rainwater tank to mains backup based on level thresholds\u003c\/li\u003e\n  \u003cli\u003eData logging on a microSD card using SPI, with formatted timestamps from a DS3231 real-time clock\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch2\u003eKit Contents\u003c\/h2\u003e\n\u003ctable\u003e\n  \u003cthead\u003e\u003ctr\u003e\n\u003cth\u003eComponent\u003c\/th\u003e\n\u003cth\u003eQuantity\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n\u003ctd\u003eESP32 Dev Board\u003c\/td\u003e\n\u003ctd\u003e1\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eHC-SR04 Ultrasonic Sensor\u003c\/td\u003e\n\u003ctd\u003e2\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eRain Sensor\u003c\/td\u003e\n\u003ctd\u003e1\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e4-ch Relay Module\u003c\/td\u003e\n\u003ctd\u003e1\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eDS3231 RTC Module\u003c\/td\u003e\n\u003ctd\u003e1\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eMicroSD Card Module\u003c\/td\u003e\n\u003ctd\u003e1\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e0.96in OLED Display\u003c\/td\u003e\n\u003ctd\u003e1\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eLM2596 Buck Converter\u003c\/td\u003e\n\u003ctd\u003e1\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e18650 Li-ion Cell\u003c\/td\u003e\n\u003ctd\u003e2\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eTP4056 Charging Module\u003c\/td\u003e\n\u003ctd\u003e1\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e100nF Ceramic Capacitor\u003c\/td\u003e\n\u003ctd\u003e10\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e10kΩ Resistor\u003c\/td\u003e\n\u003ctd\u003e10\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003ePCB Prototype Board\u003c\/td\u003e\n\u003ctd\u003e2\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eWaterproof Enclosure\u003c\/td\u003e\n\u003ctd\u003e1\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eSoldering Iron\u003c\/td\u003e\n\u003ctd\u003e1\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eSolder Wire\u003c\/td\u003e\n\u003ctd\u003e1\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch2\u003eWhy Buy This Kit Instead of Sourcing Parts Separately\u003c\/h2\u003e\n\u003ctable\u003e\n  \u003cthead\u003e\u003ctr\u003e\n\u003cth\u003eFactor\u003c\/th\u003e\n\u003cth\u003eSourcing Separately\u003c\/th\u003e\n\u003cth\u003eCompoden Kit\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n\u003ctd\u003eCompatibility checks\u003c\/td\u003e\n\u003ctd\u003eYou verify every part\u003c\/td\u003e\n\u003ctd\u003ePre-tested as a system\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eBuild support\u003c\/td\u003e\n\u003ctd\u003eForums and scattered tutorials\u003c\/td\u003e\n\u003ctd\u003eAI companion trained on this exact project\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eTime to first working build\u003c\/td\u003e\n\u003ctd\u003eDays of debugging\u003c\/td\u003e\n\u003ctd\u003eHours, with step-by-step guidance\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eShipping coordination\u003c\/td\u003e\n\u003ctd\u003eMultiple sellers, multiple delays\u003c\/td\u003e\n\u003ctd\u003eOne shipment from Bengaluru in 3-5 days\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch2\u003eWho This Kit Is For\u003c\/h2\u003e\n\u003cp\u003eThis kit is built for advanced makers, B.Tech ECE\/EEE students working on smart agriculture capstone projects, and professionals prototyping greenhouse automation. It fits perfectly into Smart India Hackathon challenges on water conservation, ATL Tinkering Lab extensions at engineering colleges, and final-year projects at IIT, NIT, VIT, or BITS Pilani. If you already know your way around an ESP32 and want a field-ready water management system that logs every rain event and switch cycle, this kit puts everything in your hands.\u003c\/p\u003e\n\n\u003ch2\u003eBuilt and Backed by Compoden\u003c\/h2\u003e\n\u003cp\u003eEvery Compoden kit ships with an AI build companion trained on this exact project — accessible via a QR code on the box, with WhatsApp and email backup. We've spent 10 years building projects for makers, schools, and institutions across India. If a part fails because of a manufacturing defect, replace it free within 7 days.\u003c\/p\u003e\n\n\u003cdetails\u003e\u003csummary\u003eWhat if I get stuck during the build?\u003c\/summary\u003e\u003cp\u003eScan the QR on the box to chat with the AI companion that knows every wire and line of code for this specific kit. You can also reach our team on WhatsApp for a direct walkthrough.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdetails\u003e\u003csummary\u003eCan I run this entirely on battery power without an external supply?\u003c\/summary\u003e\u003cp\u003eYes, the kit includes two 18650 cells, a TP4056 charger, and an LM2596 buck converter so the logger can operate off‑grid inside the greenhouse. The ESP32’s deep‑sleep modes can be configured to maximise battery life between rain events.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdetails\u003e\u003csummary\u003eHow do I set the first‑flush diversion volume?\u003c\/summary\u003e\u003cp\u003eThe code uses the rain sensor to detect the start of rainfall and a timer (or accumulated rain depth from a simple rain gauge, if you add one) to hold the diversion valve open. You can adjust the threshold in the firmware via a config file on the microSD card.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdetails\u003e\u003csummary\u003eIs the kit suitable for a solar‑powered installation?\u003c\/summary\u003e\u003cp\u003eAbsolutely — the LM2596 can take a wide input range from a solar panel, and the TP4056 module handles battery charging from the regulated supply. The enclosure is prepared for cable glands, making it easy to integrate with a small PV panel.\u003c\/p\u003e\u003c\/details\u003e\n\n\u003cdiv class=\"kit-description\"\u003e\n  \u003cp\u003eGreenhouse — Ultrasonic level sensor monitors tank. Diverts first-flush, controls pump to mains-backup valve and logs rain events.\u003c\/p\u003e\n  \u003ch4\u003eWhat's in this kit\u003c\/h4\u003e\n  \u003cul\u003e\n    \u003cli\u003e\u003ca href=\"\/products\/esp32-30-pin-development-board-cp2102-wifi-bluetooth\"\u003eESP32 Dev Board\u003c\/a\u003e\u003c\/li\u003e\n    \u003cli\u003e\n\u003ca href=\"\/products\/hc-sr04-ultrasonic-sensor-module-5v-distance-2cm-400cm\"\u003eHC-SR04\u003c\/a\u003e x2\u003c\/li\u003e\n    \u003cli\u003e\u003ca href=\"\/products\/bf350-high-precision-strain-gauge-pressure-sensor-module\"\u003eRain Sensor\u003c\/a\u003e\u003c\/li\u003e\n    \u003cli\u003e\u003ca href=\"\/products\/4-channel-relay-opto-isolated-input-board-compoden\"\u003e4-ch Relay Module\u003c\/a\u003e\u003c\/li\u003e\n    \u003cli\u003e\u003ca href=\"\/products\/ds3231-real-time-clock-module-i2c-rtc-with-battery-backup\"\u003eDS3231 RTC\u003c\/a\u003e\u003c\/li\u003e\n    \u003cli\u003e\u003ca href=\"\/products\/microsd-card-reader-spi-module-for-arduino\"\u003eMicroSD Module\u003c\/a\u003e\u003c\/li\u003e\n    \u003cli\u003e\u003ca href=\"\/products\/096in-oled-display-128x64-i2cspi-for-arduino-raspberry-pi\"\u003e0.96in OLED\u003c\/a\u003e\u003c\/li\u003e\n    \u003cli\u003e\u003ca href=\"\/products\/lm2596-buck-converter-step-down-voltage-regulator-module\"\u003eLM2596 Buck Converter\u003c\/a\u003e\u003c\/li\u003e\n    \u003cli\u003e\n\u003ca href=\"\/products\/18650-cell-37v-2600mah-li-ion-battery\"\u003e18650 Cell\u003c\/a\u003e x2\u003c\/li\u003e\n    \u003cli\u003e\u003ca href=\"\/products\/tp4056-1a-li-ion-charger-module-with-protection-micro-usb\"\u003eTP4056 Module\u003c\/a\u003e\u003c\/li\u003e\n    \u003cli\u003e\n\u003ca href=\"\/products\/capacitor-variety-pack-6-values-100nf-to-470uf-30-pieces\"\u003e100nF Caps\u003c\/a\u003e x10\u003c\/li\u003e\n    \u003cli\u003e\n\u003ca href=\"\/products\/resistor-variety-pack-100-pcs-10-values-14w-carbon-film\"\u003e10kΩ Resistors\u003c\/a\u003e x10\u003c\/li\u003e\n    \u003cli\u003e\n\u003ca href=\"\/products\/esp-wroom-32-breakout-board-pcb-55x52mm\"\u003ePCB Prototype Board\u003c\/a\u003e x2\u003c\/li\u003e\n    \u003cli\u003e\u003ca href=\"\/products\/waterproof-enclosure-ip65-abs-plastic-100x68x50mm-for-electronics\"\u003eWaterproof Enclosure\u003c\/a\u003e\u003c\/li\u003e\n    \u003cli\u003e\u003ca href=\"\/products\/soldering-kit-25w-with-solder-wire-flux-paste-compoden\"\u003eSoldering Iron\u003c\/a\u003e\u003c\/li\u003e\n    \u003cli\u003e\u003ca href=\"\/products\/soldering-kit-25w-with-solder-wire-flux-paste-compoden\"\u003eSolder Wire\u003c\/a\u003e\u003c\/li\u003e\n  \u003c\/ul\u003e\n\u003c\/div\u003e\n\n\u003cscript type=\"application\/ld+json\"\u003e\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"FAQPage\",\n  \"mainEntity\": [\n    {\n      \"@type\": \"Question\",\n      \"name\": \"What is included in the Greenhouse Rain Logger Kit with ESP32 + Ultrasonic?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"The Greenhouse Rain Logger Kit with ESP32 + Ultrasonic includes all components needed: ESP32 Dev Board, HC-SR04, Rain Sensor, 4-ch Relay Module, DS3231 RTC and more. Everything is pre-tested for compatibility and shipped from Bengaluru, India.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"What skill level is required for the Greenhouse Rain Logger Kit with ESP32 + Ultrasonic?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"This kit is designed for Expert level makers, suitable for ages 25+. Greenhouse — Ultrasonic level sensor monitors tank. Diverts first-flush, controls pump to mains-backup valve and logs rain events. Estimated build time is 10-12 hrs.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"Can I buy the Greenhouse Rain Logger Kit with ESP32 + Ultrasonic online in India?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"Yes, the Greenhouse Rain Logger Kit with ESP32 + Ultrasonic is available online at Compoden (compoden.in), India's AI-powered electronics and robotics store. Ships from Bengaluru in 1-5 business days across India.\"\n      }\n    }\n  ]\n}\n\u003c\/script\u003e\n\n\u003cscript type=\"application\/ld+json\"\u003e\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"Product\",\n  \"name\": \"Greenhouse Rain Logger Kit with ESP32 + Ultrasonic\",\n  \"description\": \"Greenhouse — Ultrasonic level sensor monitors tank. Diverts first-flush, controls pump to mains-backup valve and logs rain events.\",\n  \"sku\": \"CDN-KIT-2994\",\n  \"brand\": {\"@type\": \"Brand\", \"name\": \"Compoden\"},\n  \"offers\": {\n    \"@type\": \"Offer\",\n    \"url\": \"https:\/\/compoden.in\/products\/kit-greenhouse-rain-logger-kit-with-esp32-plus-ultrasonic\",\n    \"priceCurrency\": \"INR\",\n    \"price\": \"6135\",\n    \"availability\": \"https:\/\/schema.org\/InStock\",\n    \"seller\": {\"@type\": \"Organization\", \"name\": \"Compoden\"}\n  },\n  \"category\": \"Home Automation\"\n}\n\u003c\/script\u003e\u003cp\u003e\u003cstrong\u003eChoose your assembly option:\u003c\/strong\u003e\u003c\/p\u003e\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eSoldering Kit\u003c\/strong\u003e — 25W soldering iron, 60\/40 solder wire, flux, and small perfboard for permanent assembly.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eBreadboard Combo\u003c\/strong\u003e — 800-point full-size breadboard with 65-piece jumper wire pack for solderless prototyping.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"Compoden","offers":[{"title":"Soldering Kit","offer_id":53463674159469,"sku":"CDN-KIT-2994-SLD","price":5680.0,"currency_code":"INR","in_stock":true},{"title":"Breadboard Combo","offer_id":53463674192237,"sku":"CDN-KIT-2994-BB","price":5070.0,"currency_code":"INR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0999\/3997\/5533\/files\/kit-greenhouse-rain-logger-kit-with-esp32-plus-ultrasonic.png?v=1781948972","url":"https:\/\/compoden.com\/products\/kit-greenhouse-rain-logger-kit-with-esp32-plus-ultrasonic","provider":"Compoden","version":"1.0","type":"link"}