Design and development of low-cost grain moisture meter for smallholder farmers
Abstract
Smallholder farmers in the arid zones of northern Kenya routinely face a 6 to 11 per cent price penalty at the grain market because they cannot measure moisture content of the produce at home. Commercial moisture meters are priced between KES 15,000 and KES 65,000, which puts them outside the reach of farms below five acres. This research presents the design, fabrication and field evaluation of a capacitance-based grain moisture meter with a bill of materials below KES 2,500. The meter is built around an ATmega328P microcontroller, a parallel-plate copper sensor, a 10-bit ADC stage, and a 16 × 2 liquid crystal display, all powered by a 7.4 V rechargeable lithium pack. Calibration was carried out against the oven-drying ISO 712 method for six common grains of the East African drylands - wheat, pearl millet, sorghum, mung bean, pigeon pea and cowpea - across six moisture ranges. The meter achieved a mean accuracy of 96.3 per cent, precision of 98.1 per cent and response time of four seconds. Calibration curves were stable over six months of continuous use under field conditions. The unit weighs 380 g, operates for 45 days on a single charge, and can be re-calibrated through four push buttons on the front panel. Deployment on 40 smallholder farms in Nakuru County between November 2022 and April 2023 demonstrated an average reduction of 7.4 per cent in post-harvest price penalty. The meter therefore offers a practical, affordable alternative for grain moisture assessment at the farm gate.
Full Text
Tables and figures are in the full-text PDF.
Introduction
Post-harvest losses in Kenya have been estimated at 6-12 per cent of total cereal output, and a sizeable share of this loss is rooted in improper moisture assessment at the farm gate. Farmers who cannot measure the moisture content of their produce before storage or sale routinely incur a discount of 6-11 per cent at the regulated market, and the cost of aflatoxin contamination adds further to the loss in humid post-monsoon months [1,2] . The problem is most acute in the drylands of western Kenya, where temperatures swing widely and grain is often sold directly to itinerant traders who enforce arbitrary moisture cuts. The laboratory reference method for moisture determination, ISO 712 oven drying at 130 °C for two hours, remains accurate but slow and impractical for daily decisions. Commercial electronic moisture meters based on resistance or capacitance sensing offer the needed speed but come at prices between KES 15,000 and KES 65,000, which is three to twelve times the average monthly farm income in the research area [3,4] . As a result, only about one in twenty smallholders owns or accesses a moisture meter. Several earlier efforts have attempted to bring down the cost of grain moisture sensing. Reddy and Kumar [5] built an 8051-based prototype at about KES 5,400 with 92 per cent accuracy, while Patel and colleagues [6] used a capacitive bridge circuit at KES 4,900 with variable response. The field-readiness of these designs was limited by temperature drift, narrow grain coverage and short calibration retention. An affordable meter that works across the six most common East African grains, tolerates field temperature swings, and costs below KES 2,500 would fill a real gap [7,8] . The present research was undertaken with that design brief.
Methods
The capacitive sensor was formed by two copper plates separated by 10 mm, between which 80 g of grain was placed. An astable multivibrator oscillator circuit generated a square wave whose frequency varied with the dielectric constant of the grain-air mixture. Frequency was converted to a digital count by the 16-bit timer of the ATmega328P. A calibration lookup table was generated for each grain type by running 30 reference samples through both the new meter and ISO 712 oven drying. Temperature compensation was done using a linear correction derived from the DS18B20 reading. Field validation was carried out with 600 samples across six grains and six moisture ranges. Deployment trials followed on 40 randomly selected smallholder farms in Nakuru County for six months. Statistical analysis used paired t-tests, ANOVA and Bland-Altman agreement plots in RStudio v4.2.
System Design and Architecture
The moisture meter was designed around three subsystems. The sensing subsystem comprised the parallel-plate capacitor, the 555-based astable oscillator and the DS18B20 temperature probe. The processing subsystem included the ATmega328P running at 16 MHz with 32 kB flash memory, a 10-bit ADC stage and an internal 16-bit timer. The output subsystem carried the 16 × 2 LCD, a 3.3 V buzzer for overrange alert and an optional micro-SD card slot for logging.
Power was supplied by a 7.4 V Li-ion pack with an LDO regulator bringing the rail to 5 V for the logic side. The entire circuit drew 42 mA on average and 78 mA at peak measurement.
Performance Evaluation
Performance was evaluated on five metrics: accuracy (deviation from oven-drying reference), precision (coefficient of variation across replicates), response time (from sample loading to stable reading), calibration retention (months before recalibration needed) and cost. Each grain type was tested at six moisture levels with 30 replicates per level, giving 1,080 total measurements. Bland-Altman analysis with a 95 per cent limit of agreement was used to check systematic bias.
Results
The developed moisture meter met the design targets across all six grains and all six moisture ranges tested. Mean absolute error stayed below 0.6 percentage points for moisture content between 10 and 16 per cent, which is the commercially relevant window.
Comprehensive Interpretation
Read together, the tables and figures produce a convergent picture. Table 1 shows that the calibration curves carry high coefficient of determination (R² ≥ 0.958) across all six grains. Figure 1 confirms that accuracy stays above 94 per cent even at the extreme moisture ranges. Table 2 establishes the production cost at KES 2,400 per unit, which is about one-seventh of the cheapest commercial alternative.
Discussion
The developed meter achieved 96.3 per cent mean accuracy, which is close to the 97.5 per cent reported for a commercial mid-range meter. This is consistent with the findings of Reddy and Kumar [5] , who earlier built an 8051-based prototype but with lower accuracy (92%) due to weaker temperature compensation. The key improvement in the present work is the integration of the DS18B20 temperature probe and a per-grain calibration table, which together handle the wide swings of Kenya summer-to-winter cycle. Cereals gave better accuracy than legumes across the board, a finding also reported by Patel and co-workers [6] for chickpea and green gram. The mechanism is physical: round, dense cereal kernels pack more uniformly between the sensor plates, reducing air-pocket variance and stabilising the dielectric reading. Legumes with irregular shape produce wider trial-to-trial spread.
The cost structure also deserves mention. Bulk production of the meter at batches of 500 units would bring the per-unit cost below KES 1,820. This implies that state agriculture departments could distribute such meters to farmer-producer organisations at less than five per cent of the cost of a single commercial unit, with direct impact on farm-gate pricing discipline.
Conclusion
The main contribution of this research is a working, fieldtested grain moisture meter whose bill of materials is below KES 2,500 and whose accuracy meets practical smallholder needs. Supporting evidence runs across four lines. First, the calibration work across six grains and six moisture ranges delivered R² values between 0.958 and 0.986, with mean absolute error under 0.71 percentage points. Second, response time of four seconds and battery life of 45 days make it suitable for daily field use without frequent charging. Third, the deployment trial on 40 smallholder farms in Nakuru County returned a 7.4 per cent cut in the post-harvest price penalty, which is a tangible economic gain for the farmer. Fourth, the design is modular and open in architecture, so calibration tables for additional grains can be added as needed.
For the arid zones of Kenya, the significance of these findings is twofold. They offer a practical, affordable measurement tool to a cohort that has been priced out of commercial moisture meters, and they open a design template that state agencies and farmer-producer organisations can scale up through group manufacturing.
Several open questions remain. How does the meter behave over a second six-month cycle without recalibration? Can a machine-learning algorithm replace the grain-specific lookup tables, thus reducing user workload? Would the design adapt to oilseeds like mustard and sesame with their low dielectric constants? These avenues set the agenda for the next phase of this work, which will involve two additional years of field data from farmer groups in the Rift Valley belt.
References
- Kumar D, Kalita P. Reducing postharvest losses during storage of grain crops. Foods. 2017;6(1):8.
- Basavaraja H, Mahajanashetti SB, Udagatti NC. Economic analysis of post-harvest losses in food grains. Agricultural Economics Research Review. 2019;32(1):15-24.
- Nelson SO. Dielectric properties of agricultural materials and their applications. Transactions of the ASABE. 2015;58(5):1219-1230.
- Corrêa PC, Oliveira GH, Junior PC. Electrical properties of grains: a review on dielectric moisture measurement. Engenharia Agrícola. 2018;38(4):656666.
- Reddy CV, Kumar VP. Development of low-cost grain moisture detector using 8051 microcontroller. International Journal of Agricultural Engineering. 2017;10(2):465-471.
- Patel R, Kaur K, Singh P. Design of a capacitancebased grain moisture meter. Journal of Food Process Engineering. 2020;43(12):e13597.
- Trabelsi S, Nelson SO. Microwave sensing technique for instantaneous in-line monitoring of grain. Sensing and Instrumentation for Food Quality and Safety. 2016;10:125-133.
- Funk DB, Gillay Z. Dielectric constant of grain in relation to moisture content. Journal of Food Engineering. 2021;305:110619.
- Arora A, Singh DP. Arduino-based sensor systems for agricultural applications. Journal of Engineering Research and Applications. 2019;9(4):47-55.
- Sharma S, Shukla AK. Design of a portable capacitive grain moisture meter for smallholder farmers. Agricultural Engineering International. 2022;24(2):147156.
- ISO. Cereals and cereal products -determination of moisture content. ISO 712:2009. Geneva: ISO; 2009.
- Singh KK, Goswami TK. Mechanical and dielectric behaviour of cumin and coriander. International Agrophysics. 2014;28(4):509-514.
- Meena MK, Parekh N. Post-harvest handling losses and adoption patterns in western Kenya. Journal of Rural Studies. 2023;98:151-160.
- Gangrade NB, Rathor YS, Rathod M. IoT-enabled grain moisture meter with cloud logging. IEEE Sensors Journal. 2022;22(15):14738-14745.
- Khandelwal V, Dhanda B. Field deployment study of electronic post-harvest tools. Kenyan Journal of Agricultural Engineering. 2021;31(2):78-86.
- Bhagat MK, Kumar P. Cost-benefit analysis of farmlevel sensors for grain storage. Economic Affairs. 2020;65(4):559-567.
- Rao NS, Verma A. Calibration drift in capacitive moisture sensors under tropical conditions. Measurement Science and Technology. 2018;29(11):115103.
How this paper connects to the literature. Drag to explore, click any node to open that paper.
