{"product_id":"kit-roof-leak-detection-kit-with-esp32-plus-ultrasonic","title":"Roof Leak Detection Kit with ESP32 + Ultrasonic","description":"\u003ch1\u003eESP32 Roof Leak Detection Kit: Ultrasonic Tank Monitor \u0026amp; Control\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 IoT Rainwater Management\u003c\/span\u003e\n\u003c\/div\u003e\n\n\u003cp\u003eTransform your building’s rainwater harvesting system into a smart, automated maintenance hub. This kit guides you through building a roof leak detection and rainwater management controller that continuously monitors tank levels with dual ultrasonic sensors, diverts the first flush of contaminated water, controls a pump to switch between mains and backup feeds, and logs every rainfall event — all orchestrated by an ESP32 microcontroller. Designed for real-world building maintenance, it’s a working solution for apartments, farmhouses, and commercial structures.\u003c\/p\u003e\n\n\u003ch2\u003eWhat You'll Build\u003c\/h2\u003e\n\u003cp\u003eYou’ll assemble a weatherproof unit that mounts on your roof, constantly measuring water depth in the collection tank using HC-SR04 sensors. When rain begins, the system engages a relay‑driven first‑flush diverter, opening a purge valve for a set duration before channeling clean water to the tank. As levels change, it automates a pump bypass to switch from mains supply to stored rainwater, while the OLED shows live depth, date, and valve status. All events — rain start time, diverter cycles, pump changes — are timestamped with a DS3231 RTC and stored on microSD for long‑term analysis.\u003c\/p\u003e\n\n\u003ch2\u003eWhat You'll Learn\u003c\/h2\u003e\n\u003cul\u003e\n  \u003cli\u003eProgram an ESP32 to simultaneously manage multiple sensors, a real‑time clock, an OLED display, and relay outputs over I2C, GPIO, and SPI buses\u003c\/li\u003e\n  \u003cli\u003eCalibrate ultrasonic sensors for precise ranging outdoors, implementing median filters and debris‑rejection algorithms\u003c\/li\u003e\n  \u003cli\u003eDesign a deterministic state machine for rainwater logic: first‑flush diversion, pump bypass control, and event logging with fail‑safe defaults\u003c\/li\u003e\n  \u003cli\u003eIntegrate an RTC and microSD module to create a robust datalogger that maintains data integrity across power cycles and resets\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\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\u003c\/td\u003e\n\u003ctd\u003e1\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eMicroSD Module\u003c\/td\u003e\n\u003ctd\u003e1\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e0.96in OLED\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 Cell\u003c\/td\u003e\n\u003ctd\u003e2\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eTP4056 Module\u003c\/td\u003e\n\u003ctd\u003e1\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e100nF Caps\u003c\/td\u003e\n\u003ctd\u003e10\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e10kΩ Resistors\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 advanced kit suits B.Tech ECE and civil\/environmental engineering students crafting final‑year projects on smart water management, facilities professionals upgrading apartment or commercial rainwater systems, and IoT enthusiasts building robust home automation. It aligns with Smart India Hackathon themes and is a natural fit for IIT, NIT, and BITS Pilani project labs where real‑world monitoring must endure outdoor conditions.\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 code to access an AI assistant that knows every connection and logic flow of this kit. You can also send a WhatsApp message with a photo of your setup, and our support team will guide you through the specific step.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdetails\u003e\u003csummary\u003eHow does first-flush diversion work in this kit?\u003c\/summary\u003e\u003cp\u003eThe rain sensor triggers a relay that opens a purge valve for a pre‑programmed duration (e.g., 10 minutes), discarding the initial contaminated runoff. Once the timer expires, the valve closes and clean water flows to the tank.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdetails\u003e\u003csummary\u003eCan I upgrade the system to send data to the cloud?\u003c\/summary\u003e\u003cp\u003eAbsolutely. The ESP32 has built‑in WiFi. After completing the base build, you can extend the firmware to push logs to platforms like Blynk or AWS IoT, using the microSD as backup storage.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdetails\u003e\u003csummary\u003eWhat happens if both 18650 cells drain during an extended rain event?\u003c\/summary\u003e\u003cp\u003eThe TP4056 module charges the cells via a USB supply, and the buck converter ensures stable 5V output. If batteries drop critically low, the ESP32 saves the current state to microSD and enters deep sleep. We recommend a small solar panel or permanent USB power for continuous operation.\u003c\/p\u003e\u003c\/details\u003e\n\n\u003cdiv class=\"kit-description\"\u003e\n  \u003cp\u003eBuilding Maintenance — 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 Roof Leak Detection Kit with ESP32 + Ultrasonic?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"The Roof Leak Detection 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 Roof Leak Detection Kit with ESP32 + Ultrasonic?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"This kit is designed for Expert level makers, suitable for ages 25+. Building Maintenance — 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 Roof Leak Detection Kit with ESP32 + Ultrasonic online in India?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"Yes, the Roof Leak Detection 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\": \"Roof Leak Detection Kit with ESP32 + Ultrasonic\",\n  \"description\": \"Building Maintenance — Ultrasonic level sensor monitors tank. Diverts first-flush, controls pump to mains-backup valve and logs rain events.\",\n  \"sku\": \"CDN-KIT-2993\",\n  \"brand\": {\"@type\": \"Brand\", \"name\": \"Compoden\"},\n  \"offers\": {\n    \"@type\": \"Offer\",\n    \"url\": \"https:\/\/compoden.in\/products\/kit-roof-leak-detection-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":53463673831789,"sku":"CDN-KIT-2993-SLD","price":5680.0,"currency_code":"INR","in_stock":true},{"title":"Breadboard Combo","offer_id":53463673864557,"sku":"CDN-KIT-2993-BB","price":5070.0,"currency_code":"INR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0999\/3997\/5533\/files\/kit-roof-leak-detection-kit-with-esp32-plus-ultrasonic.png?v=1781948971","url":"https:\/\/compoden.com\/products\/kit-roof-leak-detection-kit-with-esp32-plus-ultrasonic","provider":"Compoden","version":"1.0","type":"link"}