mehakfatima - 2022-02-02

Hi everyone,
As per my client's requirement I want to on and off the pump according to the time and the water level limit. For example, If the water limit is between 7 to 9 one pump will be off which has the greatest time among all the pumps and if the limit is 6-7 the two pumps will be off having the greatest time compared to other pump and if the limit is 5-6 three pump will be off according to the time. I am having a problem to off the two pumps on the time base. I also create a bubble sort in which my time is sorted accordingly but having problems, to off the pumps according to the sorted array.