In this thesis, the MQTT protocol was implemented between the Mosquitto broker, one Raspberry Pi 4B single-board computer and four ESP32-D0WDQ6 microcontrollers. The goal was to control water valve and shade net based on the data from air temperature and humidity sensor, soil moisture sensor, rain drops sensor and light intesity sensor and to store these data in the database and displays it in real-time on the dashboard on the Grafana website.