I have 2 Over head tank in my house and each will be controlled by a 230V solenoid valve. There are 2 float switches in each of the tank. The float switches are being connected to arduino using pullup with 36ft 1sq.mm wire along with all the household appliances line concealed. Whenever the tank water is reduced, the motor turns on, but suddenly it turns off in the middle of the filling the water and when i reset the arduino, it works like crazy and i dont know what happened. After several resets, the arduino seems to work as normal.
- I think this is interference problem but i don’t know exactly what is the proble.
- I have uploaded my code if any mistakes please notify me.
- I have also uploaded the float switch i am using it is normally open switch.
Motor_Final_Rev.ino (2.47 KB)