That will work, but let me take this chance to
intro you to something different which is smart Control....(Take it or Leave it)
Float switches can get stuck, move, fall, etc Even double failures for the Shut Off. Two floats can yo-yo your water levels. Relay can fail too. What happens when you ATO hose disconnects and falls on Floor (Happened to me)
A simple little $3 controller, a DC driven AC relay, with like 15 lines of code could add some simple logic to turn on/off the pump (with single Float switch), but also give you a safety cut off, Alarm, Timer based.
The AC power could be in a proper Sealed Electrical box with a Wall Outlet for the Pump Plug.
The 2nd Float switch could be used for ALARM if overfill happens.
(Basically the same as a Tunze Osmolator)
Much safer too (low Voltage Control)
Once you learn the simple programming of an Ardiuno, you'll be able to design all kind of DIY wonders.
I was introduced to Ardiuno by mistake (a kit bought for son, and Son wasn't interested), I opened the box one day and haven't gone back. Way cheaper/faster/better than like RaspberryPi.
These are the parts: (to give you an idea)
- The Ardiuno Nano Controller ($3), which could do way more than a Top up. (Runs off USB, or 5 Volt Adapter)
- A 5 Volt Driven AC/DC Relay (that handle the 120V AC Pump, or DC pump) ($5 or less each),
TWO CHOICES:
- The float switch (magnetic), ($2)
- or The Ardiuno can also driven an
Optical Water Level Sensor at 5 Volts (more accurate, 1 extra wire)
- The optical Water sensor (OPTICAL), ($3.33)
https://www.aliexpress.com/item/32846001263.html?spm=a2g0o.productlist.0.0.555cf85baXvM9M&algo_pvid=3b83e985-ce5c-4333-a8c8-6d3327d4cb55&algo_expid=3b83e985-ce5c-4333-a8c8-6d3327d4cb55-0&btsid=24da5ee0-001d-47b7-b98e-817c24f6b726&ws_ab_test=searchweb0_0,searchweb201602_9,searchweb201603_52
*** BTW ** the LAST Link above is to Aliexpress where I get most of my parts at 1/10 the price of Amazon or 1/20 the price of Hobby stores***
*** It's a long wait for shipping from China, but I stock up for future DIY project ***********
LASTLY THE CODE:
The code is something like: (If Water low, ON) (if Water Level, OFF) (If pump run longer than 1 minutes, OFF, ALARM)
You could add a push button to snooze the AUTo during Maitenance. LED for Low, Full.
Possibilities are endless with the $3 Ardiuno.
Just tossing this out there, and I'd be willing to show the Really simple wiring, and the simple code.
The ATO can be as simple as the first one I made (with extras like display, for stats, etc)
Still running on my Frag Tank.
(Cheap DC Pump so Zero Dangerous AC)
https://www.aliexpress.com/item/32592701696.html?spm=a2g0o.productlist.0.0.48017da3R4Fveu&algo_pvid=7a2ac263-c0e4-4bb8-bda3-2692cf6c4ef9&algo_expid=7a2ac263-c0e4-4bb8-bda3-2692cf6c4ef9-5&btsid=59df011d-abcb-4b85-b270-49dccd9058ce&ws_ab_test=searchweb0_0,searchweb201602_9,searchweb201603_52
Or this one I made for a Friend, that is an AutoTopUp, but could also be a Doser with more DC Pumps (and advanced Programming)
Has plenty of Fun Light Show LEDS.
My ATOs above may be overkill, and maybe you want to avoid programming (since a computer is needed to upload code into the Controller...ONCE)
(Sorry to intrude)....At least look at Aliexpress WEB SITE for PARTS. I used to waste money, till I discovered the web site.