i make some automatic filling system for my aquarium. actually this code work fine. The problem happen if the fresh water container empty and im late to fill with the new fresh water.
The idea is sensor read the water level and if the level below the desire it will turn on pump to fill the tank with the delay 15s (the pump will on for 15s then off) if the water reach the sensor no problem will occurs. but if the water cant reach the pump it will stop working until i restart the arduino or lower the sensor to the water then place it again in the original place (need to manually restart the sensor value to make it work again)
for information if i didn’t use the delay node everything work fine even if the water can’t reach the sensor then it will turn on the pump until the water reach the desire level.
i choose to using delay because the sensor is sensitive if not using delay the relay will on off on off in short time and i believe it will short the relay age and make some annoying noise
can someone help me solve this issue?
i upload my code for more details
ATONEWv2.xodball (3.4 KB)