Garden133 is a solar and battery-powered device for monitoring garden soil moisture levels. It reads the moisture level of soil using a capacitive moisture sensor and transmits data via LoRa.
Please see the Introducing Garden133 blog post for a project overview.
Warning
For Board V8.0, do not populate resistors RL1 and RL2. These can cause a short
across the TP4056 IC!
- Modern Web Interface: A responsive Svelte-based UI for real-time status monitoring and calibration (accessible in Debug Mode).
- Soil Moisture Sensing: Capacitive sensor measurement with high-precision calibration and low-voltage filtering protection.
- Dedicated Calibration Page: View live ADC counts to precisely tune dry/wet thresholds.
- Device Environmental Monitoring: SHTC3 sensor for air temperature and humidity inside the device enclosure.
- Power Management: Solar charging, battery/5V rail monitoring, TP4056 charge/standby status reporting (Board v6+), and P-MOSFET moisture sensor power gating during deep sleep (Board v7+).
- LoRa Communication: Supports both HopeRF RFM95W (
SX1276, Board v5–v7) and Ai-Thinker Ra-01SH (SX1262, Board v8+) modules to connect to a base station (LoRa133) for Home Assistant integration. - OTA Updates: Support for wireless firmware updates.
This project includes the custom hardware design and 3D printable parts.
- PCB Design: KiCAD files are available in
KiCAD/Garden133/. - Enclosure & Fixtures: OpenSCAD files for the waterproof enclosure, desiccant inserts, mounts, and solder-paste stencil fixtures are in
OpenSCAD/.
This firmware uses the PlatformIO build system and depends on the following libraries:
- og3: Base C++ library for ESP32/Arduino.
- og3x-lora: LoRa module support (
SX1276andSX1262via RadioLib). - og3x-satellite: Satellite architecture support.
- og3x-shtc3: SHTC3 temperature and humidity sensor support.
- PlatformIO Core or VSCode with PlatformIO extension.
- Node.js (v22+) and
npm(for building the embedded Svelte web UI). - An ESP32-based Garden133 board.
The project uses secrets.ini and local.ini for local configuration and board definitions (both excluded from git):
- Setup Secrets & Local Board Environments:
Copy the example configuration files:
cp secrets.ini.example secrets.ini cp local.ini.example local.ini
- Edit
secrets.inito setotaPasswordfor Over-The-Air updates. - Edit
local.inito configure your board'sHARDWARE_VERSION_MAJOR/HARDWARE_VERSION_MINOR(e.g.,6.2,7.0, or8.0), upload port/IP, and optional UDP debug logging.
- Edit
-
Build the firmware:
pio run
-
Upload the firmware:
pio run --target upload
-
Upload Filesystem (LittleFS): This uploads the
data/directory containing web resources.pio run --target uploadfs
This project is licensed under the MIT License. See LICENSE for details.


