Hi and welcome to a new section in this course, in this section, we are going to work exclusively
in the E.S.P to sketch to improve it.
We're not going to do anything with the Madrid.
What I want to do to begin with is to replace the delay function that you see here in version three.
This is where we are at the moment, version three of these three to sketch with the task scheduler
instead of blocking execution.
At this point for a second, we're just going to use the scheduler to actually schedule the various
things that are happening inside our schedule, such as updating Madrid with the latest rule, humidity,
values and the voltages.
And this is going to allow us to, first of all, improve the efficiency of our application on the ESB
32, but also to better implement new functionalities.
So the first thing we'll do is to replace delay for the tussocks scheduler.
And then in another lecture in this section, we are going to add safety functionality or safety function
that allows the sketch itself to monitor how long the motor pump is turned on in order to prevent flooding
our Tyrolean.
This is just one of the functions that you can implement once we have tasks scheduler running inside
our sketch.
And I'm also going to take the opportunity to refactor other parts of the sketch as well, just to make
it operate better than it does at the moment.
So let's begin with the next lecture where we will implement the test scheduler to replace the delay
function.