Low-cost portable photometer using wi-fi–enabled microcontroller and silicon photodiode for iron and phosphorus determination
Main Article Content
Abstract
A low-cost and portable photometer was developed based on the ESP32 microcontroller integrated with a BPW34 silicon photodiode for the colorimetric determination of iron (Fe) and phosphorus (P) in fertilizer samples. The BPW34 sensor provided broad spectral responsivity in the 400–1100 nm range, rapid response (<100 ns), and low dark current (<2 nA), making it well suited for visible-light detection in colorimetric assays. Calibration studies showed linear responses for Fe(II)–phenanthroline and phosphomolybdate blue complexes within the ranges of 1.14–10.0 mg L⁻¹ and 0.085–1.0 mg L⁻¹, with coefficients of determination (R²) of 0.981 and 0.9966, respectively. The limits of detection (LOD) were 0.34 mg L⁻¹ for Fe and 0.025 mg L⁻¹ for P. Validation against standard methods showed good agreement between the developed photometer and the reference spectrophotometer, with Bland–Altman mean bias 0.00 mg L⁻¹ for Fe and −2.25 mg L⁻¹ for P, along with acceptable spike recoveries of 93–105% (Fe) and 90–112% (P). These results confirm that the developed photometer offers reliable analytical performance and practical applicability for quantitative colorimetric determination of nutrients in fertilizer samples, representing an affordable alternative to conventional spectrophotometric instruments.
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
References
Li J, Cao X, Jia X, Liu L, Cao H, Qin W, et al. Iron deficiency leads to chlorosis through impacting chlorophyll synthesis and nitrogen metabolism in Areca catechu L. Front Plant Sci. 2021;12:710093.
Amjad M, Khan ZI, Khalofah A, Arif M, Sadaf S. Assessment of iron accumulation in vegetables cultivated with excessive application of organic and inorganic fertilizers along with various water sources. BMC Plant Biol. 2025;25:938.
Jahan N, Mahmud U, Khan MZ. Sustainable plant–soil phosphorus management in agricultural systems: Challenges, environmental impacts and innovative solutions. Discov Soil. 2025;2:13.
Singhal S, Singh A. Atomic absorption spectrophotometric method for the estimation of micronutrients in soil and their effect on plant growth. ES Food Agrofor. 2024;18:1188.
Wieczorek D, Żyszka-Haberecht B, Kafka A, Lipok J. Determination of phosphorus compounds in plant tissues: From colourimetry to advanced instrumental analytical chemistry. Plant Methods. 2022;18:22.
Jaffar MK, Mohamad Sa'adan NS, Chua LS. Determination of available phosphorus in soil using ICP-OES and UV-Vis spectrophotometer: A comparison. Malays J Soil Sci. 2024;28:255–267.
Koronkiewicz S. Photometric determination of iron in pharmaceutical formulations using double-beam direct injection flow detector. Molecules. 2021;26:4498.
Guo R, Röhnelt AM, Martin PR, Haderlein SB. Limitations of the molybdenum blue method for phosphate quantification in the presence of organophosphonates. Anal Bioanal Chem. 2025;417:3103–3111.
Laganovska K, Zolotarjovs A, Vázquez M, Mc Donnell K, Liepins J, Ben-Yoav H, et al. Portable low-cost open-source wireless spectrophotometer for fast and reliable measurements. HardwareX. 2020;7:e00108.
Shin J, Choi HK. Arduino-based wireless spectrometer: a practical application. J Anal Sci Technol. 2022;13:44.
Di Nonno S, Ulber R. Portuino—A novel portable low-cost Arduino-based photo- and fluorimeter. Sensors. 2022;22(20):7916.
Comejina P, Kanna M, Somnam S. Development of an ESP32 microcontroller-based colorimeter with an Android app for the verification of roasting degree of coffee beans. Chiang Mai J Sci. 2024;51(5):e2024079.
Vishay Semiconductors. BPW34 silicon PIN photodiode [Internet]. Malvern: Vishay Intertechnology; 2011 [cited 2025 Nov 2]. Available from: https://www.vishay.com/docs/81521/bpw34.pdf.
WORLDSEMI Co., Ltd. WS2812B LED: Intelligent control LED integrated light source [Internet]. Shenzhen: WORLDSEMI; 2016 [cited 2025 Nov 2]. Available from: https://cdn.sparkfun.com/assets/e/6/1/f/4/WS2812B-LED-datasheet.pdf.
Rice EW, Baird RB, Eaton AD, editors. Standard Methods for the Examination of Water and Wastewater. 23rd ed. Washington, DC: American Public Health Association; 2017. Method 3500-Fe B, Iron; Method 4500-P E, Phosphorus.
Pal A, Kulkarni MB, Gupta H, Ponnalagu RN, Dubey SK, Goel S. Portable and autonomous device for real-time colorimetric detection: validation for phosphorous and nitrite detection. Sens Actuators A Phys. 2021;330:112896.
Fernandes S, Tlemçani M, Bortoli D, Feliciano M, Lopes ME. A portable measurement device based on phenanthroline complex for iron determination in water. Sensors. 2023;23(3):1058.