Hey, in this section, we are going to make modifications to the flu and to the Isbister to sketch,
so that is possible to set the desired threshold via the dashboard instead of hitting it hard wired
or hard coded in the inspectorate to sketch, as we are doing so far.
So I'm going to quickly show you what the end result of our modifications is going to be in the dashboard
itself and how it works.
So what you're looking at is the next version of the dashboard of the output of the node red flow.
And you can see I've got a new group here with the widget that allows us to set the pump threshold by
default to offset it to be 500.
That's a real value that's coming from that 10 bit analog input that is connected to the soil humidity
sensor or in this case, to the consumer that is simulating the sensor.
And it works.
Just going to turn on the power supply and you can see just works.
We tested this previously as well.
So no change to this functionality.
But let's say that I'd like to change the threshold to make it safe.
550 got a new threshold set.
And let's see how the controller reacts when you slowly increase the raw humidity value to go to a bit
over 500, 514 is still turned off a bit more, 539 still off, a bit over 550.
And the motor is now on.
And as long as the needle shows that less than five hundred and fifty the nearest face off, so that's
what we're going to do, we're going to implement the functionality for the widget that allow us to
set the pump threshold value.
And that also requires a small modification in the ISP to sketch.
Let's begin with the code red flow, because this is the component of the controller that drives this
new functionality.