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 have a purchase link configured yet.
Client Portal (Odoo)
Payment processing, invoicing, and download management are handled in our secure Odoo space.
🔑 Already purchased? Log in here to download →On a rural farm, internet is intermittent and the cloud is not an option. If your monitoring system relies 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 the chicken coop, greenhouse, and storage room. Alerts if temperature goes out of the safe range for the species.
- Soil moisture: Capacitive sensors in 3 cultivation zones. Automatic irrigation when it falls below the configured threshold.
- Water tank level: HC-SR04 ultrasonic sensor. Alert if level drops below 20% (risk to the animals).
- Power consumption: PZEM-004T on the main circuit. Detection of anomalous consumption (stuck pump, short-circuited resistor).
Everything is visualized in a Home Assistant dashboard with the digital twin architecture in three layers: acquisition (ESP32), processing (HA + InfluxDB), and visualization (embedded Grafana).
- Arduino/PlatformIO code for 4 ESP32 configurations: environmental sensor, soil moisture, tank level, power monitor
- Connection schematics (Fritzing + PDF): wiring of each sensor to the ESP32 with protection against moisture and overvoltage
- Home Assistant YAML configuration: 4 MQTT integrations + irrigation automations, alerts, and historical logging
- Preconfigured 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 supply, 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 all 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 includes photos of each connection and waterproofing tips.
- Place the devices in the field: The guide recommends placements 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 includes 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 upon reconnection.