Intelligent distribution system of drinking water

this system is to manage intelligently distributing water over several quarters. using solenoid valves and leakage sensor for detecting leakage. and for that we will need help to manage temps.on unable to simulate the millis function that calculates the time at boot time and the management of our solenoid valves, thank you .

messoualidos:
unable to simulate the millis function that calculates the time at boot time

The time at boot time, according to millis(), is 0 pretty much by definition of what millis() does.

What do you man, simulate?

Or do you mean that at boot time, you need to know the current time in HH:MM:SS ? If that is the case, you need a real time clock module eg DS3231.

@messoualidos, your question is very confusing.

The demo Several Things at a Time illustrates the use of millis() to manage timing.

If you need to use a real time clock you could convert the time to minutes (or seconds) and use the same technique but with the advantage that it will stay in sync with clock time over long periods.

...R