# Urgent electronic problem (drive pump with 2 switches)

**URL:** <https://discourse.nodered.org/t/urgent-electronic-problem-drive-pump-with-2-switches/84221>\
**Category:** Hardware\
**Created:** [2 January 2024 20:02 UTC](https://discourse.nodered.org/t/urgent-electronic-problem-drive-pump-with-2-switches/84221 "2024-01-02T20:02:39Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [2 January 2024 20:02 UTC](https://discourse.nodered.org/t/urgent-electronic-problem-drive-pump-with-2-switches/84221/1 "2024-01-02T20:02:39Z")

</div>

Hi folks,

Not really Node-RED related, but need some help...

Lots of water daily in the basement of my mother in law, due to the heavy rainfall.  
Father in law died recently and his self-made pump mechanism does not work anymore.  
So I wanted to replace it tomorrow morning, based on some Aliexpress stainless steel float switch from Ali. Something like this:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/1/01e7ba1e725546e5fc0d93983f1a269a587fefc8.png)

The switches can float up and down like the red arrows indicate.  
When a switch floats up it is OPEN and when the switch goes down it is CLOSED.

I would like to control [this](https://www.aliexpress.com/i/32909602766.html?gatewayAdapt=4itemAdapt) 4 channel 5V relay board (to control the pump):

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/8/686e85340215f85a4b6be2ecf48d9fd83fb7ee3e.jpeg)

When the upper switch is open, the relay should be closed. And when the lower switch is closed, the relay should be opened again:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/a/1a5abe7fb644aeef74a2a8eff0a5815e04d99c34.png)

Is this possible using a "simple" circuit, or am I doomed to fail tomorrow morning?  
Unfortunately I don't have much electronic components available...

Thanks a lot!!  
Bart

BTW I did not have a chance in advance to have a look how much current the pump consumes. The relais have a maximum of 10A. Suppose the pump uses above 10A: can I wire two relais in parallel to divide the current, or does this make no sense at all?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [2 January 2024 20:07 UTC](https://discourse.nodered.org/t/urgent-electronic-problem-drive-pump-with-2-switches/84221/2 "2024-01-02T20:07:10Z")

</div>

> [@BartButenaers](#):
>
> Suppose the pump uses above 10A: can I wire two relais in parallel to divide the current

Sure, but i would use inline 10A fuses on both relay outputs in case one of the relays fail (or is of sufficiently high resistance so as to cause more current to travel down one than the other)

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [2 January 2024 20:24 UTC](https://discourse.nodered.org/t/urgent-electronic-problem-drive-pump-with-2-switches/84221/3 "2024-01-02T20:24:41Z")

</div>

A 10 amp pump would be large what are you expecting to pump?  
You can turn the float switches 180 degrees to reverse their operation, then you could use a standard contactor/relay no electronics required.

But I would just go with a standard sump pump with built in float switch, or if you want to use the old pump use a 240v float switch, on a RCD circuit.

In your diagram what would happen if one float failed?  
They may be stainless, but they would get salt build up and may jam.

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [2 January 2024 20:28 UTC](https://discourse.nodered.org/t/urgent-electronic-problem-drive-pump-with-2-switches/84221/4 "2024-01-02T20:28:07Z")

</div>

As stated you can use two relays but I would consider that a stop gap rather than long term solution. They will never close or release at same time so you will get arcing and definitely not get full life out of them. I personally like SSR's and you can get them to run at 3 volt and carry 40 amps or more. But short term, they will work. Not sure what kind of pump you are using , most small volume pumps I have seen would be under 10 amps. Should be a data plate on it somewhere.

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [2 January 2024 20:52 UTC](https://discourse.nodered.org/t/urgent-electronic-problem-drive-pump-with-2-switches/84221/5 "2024-01-02T20:52:12Z")

</div>

> [@E1cid](#):
>
> A 10 amp pump would be large what are you expecting to pump?

Well it should only pump the water 2 meters higher. So yes indeed it might not use that much. Which would even be better.

> [@E1cid](#):
>
> You can turn the float switches 180 degrees to reverse their operation

Yes I did also think about that. For the upper one that would be no problem, because there is enough height. But when you turn the bottom one upside down, then the rest water level would be too high. The available depth of the barrel is very low unfortunately...

> [@E1cid](#):
>
> In your diagram what would happen if one float failed?

That is a good one...  
What a pitty that you are not allowed to curse on Discourse...

> [@gerry](#):
>
> They will never close or release at same time

Ah yes of course. Damn...

> [@gerry](#):
>
> Should be a data plate on it somewhere.

Yes, but it is too far driving for me to check right now. Will only see it tomorrow unfortunately.

By reading all this, it seems like a bad idea at all.  
I assume I will need to buy a new pump with a build-in float switch.  
One that doesn't need much height, and results in few rest water.

Thanks all for providing me some practical tips on such a short term!!!!

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [2 January 2024 21:00 UTC](https://discourse.nodered.org/t/urgent-electronic-problem-drive-pump-with-2-switches/84221/6 "2024-01-02T21:00:41Z")

</div>

> [@BartButenaers](#):
>
> But when you turn the bottom one upside down, then the rest water level would be too high.

The rest water level is set by the top float in your diagram as pump will switch off as soon as the water falls below top float. If you want the bottom to stop pump the floats would be wired in parallel, also that would mean a single float failure would just change rest water level, and act as failsafe.

I cable tie the 240v float to the top of a brick, hanging over edge, with just 1 inch of flex. the pump stops at about 2-3 inches and starts at about 5-6 inches. Been running now for 10+ years no issues.  
You can buy just the [float switch](https://cpc.farnell.com/triton-controls/lr03-l05m/float-switch-5m-cable/dp/SW03081?mckv=i5DHQp0n_dm%7Cpcrid%7C75041687792970%7Ckword%7C%7Cmatch%7C%7Cplid%7C%7Cslid%7C%7Cpid%7CSW03081%7Cpgrid%7C1200666806466218%7C&CMP=KNC-MUK-CPC-SHOPPING-273663294-1200666806466218-SW03081&s_kwcid=AL!8472!10!75041687792970!4578641300418088&msclkid=42e6a3eb02841bd1d36bc67f7e36f48d&utm_source=bing&utm_medium=cpc&utm_campaign=M-750-Shopping-Electronic%20and%20Electrical%20Components&utm_term=4578641300418088&utm_content=Sensors%20%26%20Transducers) if you have a pump already

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [2 January 2024 21:15 UTC](https://discourse.nodered.org/t/urgent-electronic-problem-drive-pump-with-2-switches/84221/7 "2024-01-02T21:15:00Z")

</div>

If it's a heavy duty pump, the relays will probably not last long without suppressing the spike (back EMF) created by the pump motor.  
Back EMF can cause rapid arcing between the relay contacts, leading to quicker degradation and potential welding of the contacts together.  
You may wish consider adding a snubber.

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [2 January 2024 22:04 UTC](https://discourse.nodered.org/t/urgent-electronic-problem-drive-pump-with-2-switches/84221/8 "2024-01-02T22:04:47Z")

</div>

On the contrary, I think your idea will run for long enough to get a few more bits together. Most pump systems have a SPOF( single point of failure), the float switch, the pump motor, and on. Carry on with your plan but keep in mind it IS temporary.

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [2 January 2024 22:29 UTC](https://discourse.nodered.org/t/urgent-electronic-problem-drive-pump-with-2-switches/84221/9 "2024-01-02T22:29:44Z")

</div>

> [@E1cid](#):
>
> If you want the bottom to stop pump the floats would be wired in parallel,

If you would have some time o draw a quick scetch of such a wiring diagram, that would really help! I did some drawing earlier this evening for both a serie and parallel circuit. But none of them seemed to do what I wanted to do. Most probaby I did something incredible stupid wrong on my paper 😳  
And why that would be failsafe...

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [2 January 2024 23:09 UTC](https://discourse.nodered.org/t/urgent-electronic-problem-drive-pump-with-2-switches/84221/10 "2024-01-02T23:09:13Z")

</div>

The big question is if you plan on wiring the float switches into the power circuit, what are the switches rated at?

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [2 January 2024 23:28 UTC](https://discourse.nodered.org/t/urgent-electronic-problem-drive-pump-with-2-switches/84221/11 "2024-01-02T23:28:04Z")

</div>

The fail safe would be that in parallel the float switches would still start pump if one failed.

If you wanted to use the relay board in your first post, I would need to see the spec as I am unsure as to how they are triggered and if resisters may be needed, @zenofmud and @dynamicdave are the electronic experts I would want to hear from on that board.

I can offer diagrams for standard 12v dry contact relays (eg shellies) or 240v float switches that you would have on standard sump pumps.I doubt your stanless floats are rated for 240v but should be fine on 12v.

 ![image22](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/6/e62091097000a059974cd10987039d0285c9562c.jpeg)  
 ![image23](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/c/0c35bbfc57bd1ee1399c1f2a2eaba70cca910fcd.jpeg)

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [3 January 2024 02:17 UTC](https://discourse.nodered.org/t/urgent-electronic-problem-drive-pump-with-2-switches/84221/12 "2024-01-03T02:17:22Z")

</div>

Not to be critical but as shown when the bottom float "makes" the pump will run thus the top float will never engage. This would make the pump short cycle, but doable although not what I think he wants. The logic is when both floats make the pump runs until the bottom falls. The floats make when down so you'll have to invert (maybe) that logic to get what you want. Let's call the bottom float A, top B. When A and B make run pump till A opens. Then reset.

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [3 January 2024 03:01 UTC](https://discourse.nodered.org/t/urgent-electronic-problem-drive-pump-with-2-switches/84221/13 "2024-01-03T03:01:43Z")

</div>

I ginned up a quick flow and can't test but I think this does what you need. You'll need to get the floats wired to a Pi pin and I don't know what those look like or which ones. I use a board that looks like what you have and it uses inverse logic (0) to activate pins. You'll need to sort that out I didn't use inverse logic on the output but I did account for the inverse logic on the floats. (again I think), I'm not a coder I'm a hardware guy by training so take this flow with that in mind.

```auto
[{"id":"6b6734f989360c42","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"14cee1b989ea917a","type":"comment","z":"6b6734f989360c42","name":"float A bottom","info":"","x":250,"y":140,"wires":[]},{"id":"df3075a8e9c8f45e","type":"comment","z":"6b6734f989360c42","name":"float B top","info":"","x":240,"y":300,"wires":[]},{"id":"d6446b1fcaecaed2","type":"rpi-gpio in","z":"6b6734f989360c42","name":"","pin":"23","intype":"tri","debounce":"25","read":false,"bcm":true,"x":250,"y":200,"wires":[["cfefdc08ed2e98e7"]]},{"id":"7dac2034729d6911","type":"rpi-gpio in","z":"6b6734f989360c42","name":"","pin":"18","intype":"tri","debounce":"25","read":false,"bcm":true,"x":250,"y":340,"wires":[["27fcc2d3c14d6bc6"]]},{"id":"a2104622be8e456d","type":"rpi-gpio out","z":"6b6734f989360c42","name":"","pin":"24","set":"","level":"0","freq":"","out":"out","bcm":true,"x":780,"y":260,"wires":[]},{"id":"3dfa1aee6a924783","type":"comment","z":"6b6734f989360c42","name":"to motor","info":"","x":780,"y":200,"wires":[]},{"id":"cfefdc08ed2e98e7","type":"function","z":"6b6734f989360c42","name":"Float A","func":"let A = msg.payload;\n\nif (A == 0){\n msg = {\n payload: 1,\n topic: A,\n }\n}\nif (A == 1) {\n msg = {\n payload: 0,\n topic: A,\n }\n}\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":420,"y":200,"wires":[["68fea6eb23f07df8"]]},{"id":"27fcc2d3c14d6bc6","type":"function","z":"6b6734f989360c42","name":"Float B","func":"let B = msg.payload;\n\nif (B == 0){\n msg = {\n payload: 1,\n topic: B,\n }\n}\nif (B == 1) {\n msg = {\n payload: 0,\n topic: B,\n }\n}\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":420,"y":340,"wires":[["68fea6eb23f07df8"]]},{"id":"68fea6eb23f07df8","type":"function","z":"6b6734f989360c42","name":"Pump Logic","func":"\nvar FloatA;\nvar FloatB;\nvar PumpOn;\n\nif (msg.topic == \"A\"){\n context.set(\"FloatA\",msg.payload);\n}\nif (msg.topic == \"B\") {\n context.set(\"FloatB\", msg.payload);\n}\n\nFloatA = context.get(\"FloatA\");\nFloatB = context.get(\"FloatB\");\n\nif (FloatA == 1 && FloatB == 1){\n //turn pump on\n PumpOn = 1;\n context.set(\"PumpOn\",PumpOn);\n}\n\nif (PumpOn == 1 && FloatA ==0){\n //turn pump off\n PumpOn = 0;\n context.set(\"PumpOn\",0);\n}\n\nlet Output = context.get(\"PumpOn\");\n\nmsg.payload = Output;\n\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":590,"y":260,"wires":[["a2104622be8e456d"]]}]

```

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [3 January 2024 06:39 UTC](https://discourse.nodered.org/t/urgent-electronic-problem-drive-pump-with-2-switches/84221/14 "2024-01-03T06:39:39Z")

</div>

Hi guys,  
seems you have been working hard while I was sleeping 😍  
Thanks for the assistance!!

I managed to lend a pump from my dad temporary which does what I need. Which buys me some extra time to think about this decently.

> [@E1cid](#):
>
> I doubt your stanless floats are rated for 240v but should be fine on 12v.

Yes indeed they are for low voltage only. That is why I had suggested the relay in my original post, so that the relay could toggle the 230V signal. Seems I wasn't very clear in my post. Normally I try to draw a wiring diagram, but I was a "bit" out of time last night...

Ah you used a Shelly. Cool. I like Shellies for their simplicity...  
I had also been looking at Shellies last night, but I thought I needed a [Shelly 1L](https://kb.shelly.cloud/knowledge-base/shelly-1l) because that has 2 switch inputs:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/d/ddc5cfcb8650e6fdd9f20524195100876c8909d3.jpeg)

And that I needed to put some logic inside the shelly (using Shelly script or whatever) to fit my needs. Although I was not sure what was needed... But since I didn't have one of those Shelly 1L devices, I started this discussion to solve it another way.

I still don't understand how two switches in parallel can solve this 😳

- When the water rises: the bottom switch opens and the top switch is still closed, the pump should be off.
- When the water drops: the bottom switch is still open and the top switch closes again, the pump should be off.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/0/70c735d1b5815615570a4efdd4e71c8bf0c03828.png)

So both switches have the same state, but the pump state should be different. How can you achieve that with a parallel circuit? Think I am getting nuts...

> [@gerry](#):
>
> Not to be critical but as shown when the bottom float "makes" the pump will run thus the top float will never engage

The pump should stop when the water drops below the bottom switch, so when the bottom switch closes again. Since you and @E1cid have a similar remark, I assume my drawing is completely wrong. So I am really getting nuts...

Thanks for your flow! Will have a look tonight at, because I need to start driving to my mother in law to get things done today. Will tell here how this community tried to help her, by explaining me how a simple switch works 😂

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [3 January 2024 07:35 UTC](https://discourse.nodered.org/t/urgent-electronic-problem-drive-pump-with-2-switches/84221/15 "2024-01-03T07:35:29Z")

</div>

> [@BartButenaers](#):
>
> - When the water rises: the bottom switch opens and the top switch is still closed, the pump should be off.
> - When the water drops: the bottom switch is still open and the top switch closes again, the pump should be off.

~~I explained in earlier post that if you wire in series the water level will only go as low as picture 2 and 3,. This is due to fact that pump will turn off as soon as top float closes.~~  
Scratch that i did not see the difference in 2 and 5.

The shelly 1L does not have dry contacts so please check [knowledge base](https://support.shelly.cloud/en/support/solutions/articles/103000043988-what-does-dry-contacts-mean-on-the-shelly-1-and-shelly-plus-1-) before purchase

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [3 January 2024 08:11 UTC](https://discourse.nodered.org/t/urgent-electronic-problem-drive-pump-with-2-switches/84221/16 "2024-01-03T08:11:56Z")

</div>

Sorry to butt in, but something is confusing.

@BartButenaers  
You have 1 or 2 pumps?  
I think it is `1`.

The two _switches_ (aka sensors).  
One is low down (physically)  
The other is higher.

There is a problem with `INFLOW` and `OUTFLOW`.  
Inflow is how fast the water in coming in and Outflow is how much water the pump can pump.

Outflow MUST BE GREATER than Inflow - or you are going to have/get more problems.

I fear you may be confused - and fair enough if you home is getting flooded.

Given the pump can handle the inflow:  
You need hysteresis for the pump, as it is not good to run a water pump dry.

Put the lower of the switches/sensors near the floor.  
You should not put it at the bottom as the pump may run dry.

Put the second sensor higher. Say...... 10cm. 4 inches I think. (I'm metric)

The logic should be like this:

```auto
while (switch1 == active)
{
    if (switch2 == active)
   {
         turn pump on;
    }
}
turn pump off

```

This way:  
your floor will get wet - sorry, but that's how it is.  
When the higher sensor is _activated_ the pump is turned on.  
(All being good it will pump out the water faster than it is coming in. But we've covered that)  
When the lower sensor then detects the water is gone, the pump is turned off.

Hope that helps.

Good luck.

---

<div class="post-metadata">

**Author:** ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)\
**Post date:** [3 January 2024 12:11 UTC](https://discourse.nodered.org/t/urgent-electronic-problem-drive-pump-with-2-switches/84221/17 "2024-01-03T12:11:34Z")

</div>

Hi @BartButenaers,  
I may have a solution for your script:  
Need a flag:

```js
let flag = false;

if (!sw1 && !sw2) {
  flag = true;
}

if (flag && sw1) {
  flag = false;
}

output = flag;

```

sw1 -\> Float Low  
sw2 -\> Float High  
output -\> Pump

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [3 January 2024 14:32 UTC](https://discourse.nodered.org/t/urgent-electronic-problem-drive-pump-with-2-switches/84221/18 "2024-01-03T14:32:14Z")

</div>

Hi Bart, I'm guessing that you were wishing to avoid using a pi or other microprocessor to achieve this, but you just wanted to use the bank of 4 relays??  
If so, consider the diagram below.

**Water level below bottom sensor**  
Both High & Low relays are not energised, so pump not operating.

**Water level above bottom sensor**  
Low relay is then activated, but as the Latch relay is not activated, the output relay & pump remains inactive.

**Water level above top sensor**  
Both High & Low relays are activated. The High relay activates the Output relay, and energises the pump.  
The High relay also energises the Latch relay, allowing the current to also flow through the Low relay into the latch relay and also activate the output relay.

**Water level falls, and the high sensor no longer activated**  
The High relay is not energised, but because the latch relay is still energised, current continues to flow from the Low relay, through the latch relay, the output relay, and keeps the pump running.

**Water level falls below Low sensor level**  
The Low relay is then not energised, so the latch relay is no longer 'latched' and no output to the pump.

 ![circuit](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/2/a250117a1c9d5963228f5f29c2eeb95603ed4f13.jpeg)

---

<div class="post-metadata">

**Author:** ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)\
**Post date:** [3 January 2024 15:07 UTC](https://discourse.nodered.org/t/urgent-electronic-problem-drive-pump-with-2-switches/84221/19 "2024-01-03T15:07:37Z")

</div>

I believe you should use NC for High Relay and Low Relay because the float logic is reversed

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [3 January 2024 15:17 UTC](https://discourse.nodered.org/t/urgent-electronic-problem-drive-pump-with-2-switches/84221/20 "2024-01-03T15:17:54Z")

</div>

> [@GogoVega](#):
>
> I believe you should use NC for High Relay and Low Relay

I've never used a float sensor so wasn't aware, however easily sorted!  
I've updated the schematic accordingly.

EDIT see [this post below](https://discourse.nodered.org/t/urgent-electronic-problem-drive-pump-with-2-switches/84221/27) for plan B

[Next page](https://discourse.nodered.org/t/urgent-electronic-problem-drive-pump-with-2-switches/84221.md?page=2)
