Problem with relay and pump.

Hello,

I have a resistor on the LED.

I tried to put a smaller resistor, but it acts like the the float is always on.

Do you think a condenser could help me not to receive noise on the float PIN?

If yes what kind of condenser. I am pretty new in electronics.

Thanks