# Digital Transformation of Beekeeping through the Use of a Decision Making Architecture
## 6 Case Study  
The case study developed in this project corresponds to level 3 of the MM presented in Section 3 and in Table 1. Table 4 presents our case study with the MM. We have chosen the agile approach because it is flexible based on principles of collaboration, adaptability, and continuous improvement. This approach is ideal for our project, which is service-oriented and allows for the rapid adaptation based on stakeholder feedback. The information is transferred by using smartphone or web applications to the data model for later decisions, as shown in Figure 9. Along with the best practices and modern design techniques, REST architectural style allows building an API that is both extendable and flexible. Indeed, the use of API HTTP REST provides various possible interactions with third-party platforms in both directions. REST APIs should accept the JSON format for the request payload and send responses to JSON. JSON is a standard for transferring data. Almost every networked technology can use it. \begin{table}
\begin{tabular}{c c c c c} \hline \hline
**Maturity Model Levels** & **1** & **2** & **3** & **4** & **5** \\ \hline \hline  
Beehive connected & - & - & yes & - & - \\ \hline \hline \end{tabular}
\end{table} 
Table 4: Maturity Model levels of the case study. Figure 8: Excerpt from the central data model. The criteria for this project are:  
* Low-power board computer, because the system has to be embedded on the apiary during several weeks;
* The materials have to be low-cost because we need to convince the beekeepers to use it. It means we have to make a compromise between accuracy and price. From these constraints, we selected the materials below:
* Arduino: the best embedded low-power single board computer;
* Sensors for the humidity and temperature: **AZDelivery DHT11**;
* Sensors for the Weight: **HX711 Module**;
* Sensors for communication: **Z-Delivery ESP8266 ESP-01 Serial Wireless WLAN WiFi Transceiver Module Transceiver**. We made our weight sensor by combining four single strain gauges (load sensor). We made boxes to encapsulate the sensors using a 3D printer. Figure 10 shows: single strain gauge (a) arranged in a Wheatstone bridge configuration (c). A load sensor combinator from sparkfun (b), which is a module that directly integrates a Wheatstone bridge configuration to which we only have to connect the four sensors according to the diagram (c). The combinatory board is hooked up to an amplifier (HX711 module). Load cell measurements can be off due to a range of things (temperature, vibration). In our tests, we obtained calculation variations between \(+2\%\) and \(-3.5\%\). At the top of Figure 11, we can see the day's indicators (specified at the top left), such as the maximum and minimum temperatures of the hive, its maximum and minimum humidity levels, as well as its weight. These indicators turn red if they are too high, and blue if they are too low. Each indicator is represented as a curve below, showing the evolution of the data over a chosen period (which year, month, or number of  
Figure 11: Dashboard: data. Figure 10: Weight sensor: (**a**) single strain gauge, (**b**) a load sensor combinator from sparkfun, (**c**) Wheatstone bridge configuration \(\copyright\) [[https://learn.sparkfun.com/tutorials/load-cell-amplifier-hx711-breakout-hookup-guide/all](https://learn.sparkfun.com/tutorials/load-cell-amplifier-hx711-breakout-hookup-guide/all)]([https://learn.sparkfun.com/tutorials/load-cell-amplifier-hx711-breakout-hookup-guide/all](https://learn.sparkfun.com/tutorials/load-cell-amplifier-hx711-breakout-hookup-guide/all)). Accessed on 28 September 2022. The figures also show a prediction of the weight as well as the weather. We use the linear regression algorithm. Very similar to Figure 11, Figure 12 shows the indicators for the external data. The ambient temperature as well as the outdoor humidity levels have been taken into account. Unlike the previous part, the indication of the wind force as well as the weather forecast for the day are shown.