Rural Edge Computing Kit (ESP32 + Home Assistant Digital Twin)
Description
ESP32 code + YAML dashboard + schematics to set up a digital twin of your farm with Home Assistant. Monitoring of temperature, humidity, irrigation, and energy without reliable internet.
This product does not yet have a purchase link configured.
Customer Portal (Odoo)
Payment processing, invoicing, and download management are handled in our secure Odoo space.
🔑 Already purchased? Log in here to download it →On a rural farm, the internet is intermittent and the cloud is not an option. If your monitoring system depends on an AWS API, every internet outage is a blind spot. This kit solves that with edge computing: all processing happens on local devices (ESP32 + Raspberry Pi with Home Assistant).
The system monitors 4 critical variables:
- Ambient temperature and humidity: DHT22 sensor in chicken coop, greenhouse, and storage room. Alerts if the temperature leaves the safe range by species.
- Soil moisture: Capacitive sensors in 3 growing zones. Automatic irrigation when it drops below the configured threshold.
- Water tank level: HC-SR04 ultrasonic sensor. Alert if the level drops below 20% (risk for the animals).
- Power consumption: PZEM-004T on the main circuit. Detection of anomalous consumption (stuck pump, shorted resistance).
Everything is visualized in a Home Assistant dashboard with the three-layer digital twin architecture: acquisition (ESP32), processing (HA + InfluxDB), and visualization (embedded Grafana).
- Arduino/PlatformIO code for 4 ESP32 configurations: environmental sensor, soil moisture, tank level, electrical monitor
- Connection schematics (Fritzing + PDF): wiring of each sensor to the ESP32 with protection against humidity and overvoltage
- Home Assistant YAML configuration: 4 MQTT integrations + irrigation automations, alerts, and historical logging
- Pre-configured Grafana dashboard: 6 panels (24h temperature, soil moisture by zone, tank level, power consumption, alerts, weekly summary)
- Docker Compose for Raspberry Pi 4: Home Assistant + Mosquitto MQTT + InfluxDB + Grafana in a single command
- Field installation guide (PDF, 22 pages): sensor placement, IP67 protection, battery + solar panel power, and monthly maintenance
- OTA firmware: update the ESP32s remotely from Home Assistant without going to the field
- Requirements: Raspberry Pi 4 (4GB), 4× ESP32-WROOM-32, sensors (full list in the BOM), 5V/2A power supply per ESP32, and a local WiFi network (no internet needed, just a local router).
- Flash the ESP32s: Open PlatformIO, select the sensor configuration you are going to install, edit the WiFi credentials and the MQTT broker, and flash via USB. Repeat for the 4 devices.
- Bring up the stack on the Raspberry: Copy the
docker-compose.ymlto the Pi, rundocker compose up -d. Home Assistant will be available athttp://raspberry:8123in 3 minutes. - Connect the sensors: Follow the Fritzing schematics to wire each sensor to the ESP32. The guide has photos of each connection and waterproofing tips.
- Place the devices in the field: The guide recommends locations by sensor type (e.g., soil moisture at 10cm depth, tank level at 30cm from the top edge).
- Configure alerts: In Home Assistant, adjust the alert thresholds according to your species (the guide has safe range tables per animal/crop).
- Verify the digital twin: Open the Grafana dashboard and confirm that the 4 variables update every 60 seconds. If an ESP32 loses connection, the system buffers the data and syncs it when it reconnects.