Arduino pumps turn on when they want

Hi everybody I made a simple control box for my aquarium, I have one db18b20 sensor for temperature, and ventilators turn on at 29ªC no problem there, the issue is with the pumps, they not always turns on at the specified time, or some days one od the pumps turns on, and the other don't. I'm not a expert in fact this is my frist arduino projetc. I appreciate all the help.

final.ino (3.01 KB)

Your timekeeping uses a test for equality with seconds. If you don't sample the time during that one second interval, it will be missed. Perhaps that is the reason.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.