Document Type : Research Article


Department of Energy, Materials and Energy Research Center, Karaj, Iran.


In this research study, a cost-effective and reliable weather station using a microcontroller system containing instruments and sensors for measuring and recording ambient variables was designed, fabricated, and tested. The dataset recorded and stored in the meteorological system can be applied to conduct various research in the field of energy and environment, especially in solar systems. Employing a microcontroller system reduces costs and provides special features such as accessing data on the web-based spreadsheets and adding control devices. In this system, meteorological information including solar radiation, air temperature, wind velocity, and air relative humidity is measured and saved in user-defined time intervals such as 30 seconds. The total cost for measuring equipment, sensors, and microcontroller along with a data logger is about 110 USD. To demonstrate the importance of using local meteorological data, in the vicinity of the case studies, the dataset provided by the local weather station was compared with the meteorological data of two nearby national stations for one month. The results revealed that the values reported by the national stations were different from the actual values measured by the local weather station. The deviations for solar radiation, wind velocity, air temperature and humidity values were at least 5, 9, 7%, and more than 100%, respectively.


Main Subjects

  1. Abbate, S., Avvenuti, M., Carturan, L., Cesarini, D. (2013). Deploying a Communicating Automatic Weather Station on an Alpine Glacier. Procedia Computer Science, Volume 19, 1190-1195.
  2. Anemometer Instructions. (2005). science first, Available from:
  3. Bai, Y., Meng, X., Guo, H., Liu, D., Jia, Y., Cui, P. (2021). Design and validation of an adaptive low-power detection algorithm for three-cup anemometer, Measurement, Volume 172, 108887.
  4. Baseer, M.A., Meyer, J.P., Rehman, S., Mahbub Alam, Md., Al-Hadhrami, L.M., Lashin, A. (2016). Performance evaluation of cup-anemometers and wind speed characteristics analysis, Renewable Energy, Volume 86, 733-744.
  5. Bernardes, G.F.L.R., Ishibashi, R., Ivo, A.A.S., Rosset, V., Kimura, B.Y.L. (2023). Prototyping low-cost automatic weather stations for natural disaster monitoring, Digital Communications and Networks, 941-956.
  6. Blum, N.B., Wilbert, S., Nouri, B., Lezaca, J., Huckebrink, D., Kazantzidis, A., Heinemann, D., Zarzalejo, L.F., Jiménez, M.J., Pitz-Paal, R., (2022). Measurement of diffuse and plane of array irradiance by a combination of a pyranometer and an all-sky imager. Solar Energy, 232: p. 232-247.
  7. Cureau, R.J., Pigliautile, I., Pisello, A.L. (2022). A New Wearable System for Sensing Outdoor Environmental Conditions for Monitoring Hyper-Microclimate. Sensors, 22(2), 502.
  8. DHT22 temperature-humidity sensor technical details. (2023). Available from, Available from:
  9. Duffie, J.A., Beckman, W.A. (2013). Solar engineering of thermal processes. 4th ed., Hoboken, N.J: Wiley.
  10. Ligęza, P., (2009). An investigation of a constant-bandwidth hot-wire anemometer. Flow Measurement and Instrumentation, 20(3): p. 116-121.
  11. Moghadasi, M., Ghadamian, H., Khodsiani, M., Pourbafrani, M. (2022). A comprehensive experimental investigation and dynamic energy modeling of a highly efficient solar air heater with octagonal geometry, Solar Energy, Volume 242, Pages 298-311, ISSN 0038-092X,
  12. Moghadasi, M., Izadyar, N., Moghadasi, A., Ghadamian, H. (2021). Applying machine learning techniques to implement the technical requirements of energy management systems in accordance with iso 50001: 2018, an industrial case study, Energy Sources, Part A: Recovery, Utilization, and Environmental Effects, 1–18.
  13. Moghadasi, M., Ghadamian, H., Moghadasi, M., Seidabadi, L. (2023). Prediction of outlet air characteristics and thermal performance of a symmetrical solar air heater via machine learning to develop a model-based operational control scheme—an experimental study. Environ Sci Pollut Res, 30, 27175–27190.
  14. Monteiro, M.S., Caldas Filho, F.L.D., Barbosa, L.A., Martins, L.M.C.E., Menezes, J.T.M.D., Silva Filho, D.A.D. (2019). University Campus Microclimate Monitoring Using IoT in 2019 Workshop on Communication Networks and Power Systems (WCNPS).
  15. Mustafa, M., Xu, Y., Haritos, G., Kenji, K. (2016). Measurement of Wind Flow Behavior at the Leeward Side of Porous Fences Using Ultrasonic Anemometer Device. Energy Procedia, 85: p. 350-357.
  16. Netto, G.T. and Arigony-Neto, J.(2019). Automatic Weather Station and Electronic Ablation Station for measuring the impacts of climate change on glaciers. HardwareX, 5: 1-13.
  17. Nsabagwa, M., Byamukama, M., Kondela, M., Otim, J.S. (2019). Towards a robust and affordable Automatic Weather Station. Development Engineering, 4: p. 100040.
  18. Pashchenko, A.F., Rassadin, Y.M. (2022). Microclimate Monitoring System Design for the Smart Grid Analysis and Constructive Parameters Estimation. IFAC-PapersOnLine, 55(9): p. 479-484.
  19. Pham, Q.T. (2014). PHYSICAL MEASUREMENTS | Other Physical Measurements, in Encyclopedia of Meat Sciences (Second Edition), M. Dikeman and C. Devine, Editors, Academic Press: Oxford. p. 50-56. ISBN 978-0-12-384734-8,
  20. Michael, P. R., Johnston, D. E., Moreno, W. (2020). A conversion guide: solar irradiance and lux illuminance. Journal of Measurements in Engineering, 8, No. 4, pp. 153–166.
  21. Radajewski, M., Decker, S., Krüger, L. (2019). Direct temperature measurement via thermocouples within an SPS/FAST graphite tool. Measurement, 147: p. 106863.
  22. Rafiquzzaman, M., (2014). Fundamentals of digital logic and microcontrollers. Sixth edition, p-9781118855799, Hoboken, New Jersey: Wiley. ISBN: 978-1-118-85579-9.
  23. ROHM semiconductor, Available from:
  24. Sparkfun, Available from:
  25. Sparkfun, Available from:
  26. Wang, W., Li, S., Guo, S., Ma, M., Feng, S., Bao, L. (2021). Benchmarking urban local weather with long-term monitoring compared with weather datasets from climate station and EnergyPlus weather (EPW) data. Energy Reports, 7: p. 6501-6514.