Code, data and firmware for: Rain-forecast deferral for sensor-based IoT irrigation

Published: 1 November 2026| Version 2 | DOI: 10.17632/bsh7rvcs7b.2
Contributors:
MD GALIB HASAN,
,

Description

This dataset contains the code, processed input data, results and ESP32 firmware behind the article "How much does a rain forecast add to sensor-based irrigation? A multi-site evaluation of safety-bounded forecast deferral for low-cost IoT controllers, with a Bangladesh case". The Python code runs an FAO-56 root-zone water balance for 152 crop seasons at seven sites in Bangladesh and the US Great Plains. It compares five irrigation policies: a rain-blind calendar, a rain-adjusted calendar, soil-moisture threshold control, and threshold control with unbounded or bounded 24-hour rain-forecast deferral. Forecasts are synthetic with controlled skill, and the sensor model includes noise and bias. The package also includes day-ahead soil-moisture forecasting models, a sensor calibration comparison, the statistical tests, and the scripts that rebuild every table and figure of the article. All policy results are simulated. Weather and soil-moisture inputs come from public sources (NASA POWER, Bangladesh Meteorological Department, gridMET, Oklahoma and Kansas Mesonets, USCRN), and the calibration data come from a public Kansas State University repository. The firmware folder holds the Arduino sketches for the ESP32 controller and for the field-trial node used in a planned field experiment.

Files

Steps to reproduce

1. Unzip the file and open the folder IoT_Irrigation_Forecast_Deferral. 2. Install Python 3.10 or newer, then run: pip install numpy pandas scipy scikit-learn matplotlib 3. Run: bash run_all.sh (about 3 minutes; results go to results/ and figures go to figures/) 4. Firmware: open the sketches in firmware/ with Arduino IDE 2 and the ESP32 board package 3.x.

Categories

Weather Forecasting, Water Management, Agricultural Engineering, Internet of Things, Bangladesh, Soil Moisture, Irrigation

Licence