8 relays and 8 acs712 sensors and 8 solenoids, delay off time is not working

knightridar:
Thanks for the clue. :slight_smile:

Well, it wasn't a clue in the sense that I knew what would happen - it's just that normally the main body of code that accomplishes some task is placed in loop(). setup()'s more of an initialization thing, setting I/O pins, opening communication with serial devices, and whatnot.