## 3 Wireless Sensor System Deployment
### WSN Deployment
The objective of the node implementation is to collect the following data: Production order that is being made; operator identification; time at which production times are being carried out (preparation and search time for the fabric, extension of the fabric, fabric cutting time, collection of the semifinished product, total time). * Workstation 3: Thermal welding machine 1 (see Figure 13c). The IR obstacle sensor KY-033 in this case detects the movement of the piston (when the piston is at the bottom, the machine is in the process of heat welding). The green pushbutton is used to terminate each product that has been made and the red pushbutton is used to enter the production order when there is a change. Finally, the keypad is used to enter the identification of the operator and the production order to be made. Using this node, the following data is collected: Production order that is being made; operator identification; time at which it is being carried out; production times (preparation and search time for aluminum profiles, heat-welding and winding time and total time). * Workstation 4: Thermal welding machine 2 (see Figure 13d). In this workstation, IR obstacle sensor KY-033 has been used to detect the movement of the piston (when the piston is at the bottom, the machine is in the process of heat welding). The green pushbutton is used to terminate each product that has been made and the red pushbutton is used to enter the production order when there is a change. The 3 \(\times\) 4 numeric Matrix Keypad is used to enter the identification of the operator and the production order to be made. The following data is collected: Production order that is being made; operator identification; time at which it is being carried out; production times (preparation time, heat-welding and preparation time and total time). * Workstation 5: Automatic slat machine (see Figure 13e). The IR obstacle sensor KY-033 detects each time a slat is made, to obtain the times between each slat and to be able to count the number of slats made. The green pushbutton is used to terminate each product that has been made and the red pushbutton is used to enter the production order when there is a change. The Keypad is used to enter the identification of the operator and the production order to be made. The following data has been collected: Production order that is being made; operator identification; time in which it is being made; number of slats that have been made and the production times (programming and fabric search time, operating time, downtime and total time). An important aspect of IIoT systems is the security of the communications. ZigBee mesh networks can employ robust security mechanisms, including 128-bit AES encryption and authentication protocols, to safeguard data integrity and prevent unauthorized access. Network key and link key encryption protect all transmitted data, while device commissioning and KEP ensure device legitimacy. Additional security measures like secure joining, ACLs, and message filtering further enhance network protection. The present study has been carried out without activating the encryption nor key use security mechanisms, following company's requirements. In case this feature will be needed in the future, it can be easily configured. Its main effect on the system will be that the energy consumption of the nodes will grow. However, since all the nodes are connected to the power supply of the machines (i.e., to the power grid), no negative impact on the performance of the WSN will be expected.