In this paper, a modified design for a thermoelectric distiller is proposed, constructed, and tested. The design modifications include adding an inclined cover for the thermoelectric module and a cooling fan. The thermoelectric module and the fan were operated by an open loop or a feedback control to have the desired productivity. As the distiller productivity depends on the operating conditions, these operating conditions are investigated to find the best performance with the highest pure water productivity. Furthermore. a comparison between the closed and the open loop for driving the cooling fan with different operating conditions is conducted. In this work, the mathematical model of the proposed distiller is derived. Experimental results illustrate the robustness of the proposed approach and they show that the suggested thermoelectric distiller with feedback control, for both cases with MPC and PID controllers, can increase pure water productivity by up to 150% when compared with the open loop thermoelectric distiller.
Wireless sensor networks (WSNs) are fundamental to the Internet of Things (IoT) and are widely used in environmental, industrial, and healthcare applications. However, their operational lifetime is constrained by the limited energy resources of sensor nodes. The Low-Energy Adaptive Clustering Hierarchy (LEACH) protocol reduces energy consumption through clustering but suffers from random cluster head (CH) selection, leading to uneven energy usage and reduced stability. This study introduces a hybrid optimization approach, LEACH-CSA, which integrates the Crow Search Algorithm (CSA) with LEACH to enhance CH selection and positioning. The proposed method employs CSA’s intelligent search behavior to minimize intra-cluster distances and balance energy consumption across nodes. MATLAB simulations with 100 sensor nodes in a 100 × 100 m2 area demonstrate that LEACH-CSA significantly reduces energy consumption and extends network lifetime compared with LEACH and its variants. Furthermore, CSA parameters were optimized using a progressive randomized tuning strategy with 1000, 2000, and 4000 candidate configurations. A comparative evaluation against LEACH-based GA, PSO, GWO, and WOA demonstrated that LEACH-CSA consistently improved the FND metric under different node density and area-scaling scenarios.