DIY : Float switch controller.
Use these to control 12 V water pumps for filling up water containers. Like aquarium, water filter, in house emergency water storage tanks or your water fountains.
Costs about 100/= on Daraz. Your water filter probably has one of these. If it gets out of order, you can buy one and replace it. Symptom of it been broken is that the pump doesn't stop even when the tank gets filled up.
The catch about this device is that you need to stick a rubber band on the top or bottom part of it so that the ball doesn't move too top or bottom part depending on whether you are using it as Normally ON or Normally OFF device aka NO/NC. When the ball is at the center -- it's off. Turns on when it slides top or bottom due to water level change.
I change the one in my water filter regularly, whenever it breaks down.