Now, let us quickly test this sketch.
I'm rotating my potential meter, and as you can see, I am increasing the value all the way up to 20,
24 degrees and get back all the way to zero.
I'm also turning off and turning on my head so you can put actually a temperature sensor or any other
sensor instead of these do the right.
The scaling can be doing a sketch and now you are able to do that.
However, there is a problem in this.
We are publishing all the time.
It means that here we are sending data at a very fast rate, which is blocking the bandwidth.
And that's not really something you want to do.
You always want to publish at certain intervals.
Why is that?
Because if you have a lot of signals that you're trying to publish to, it's going to consume all of
your bandwidth.
And it's not really OK even for one sensor, because, well, you're consuming a lot of power.
Let's assume that this is an Iot device that is connected to a battery.
Well, this will consume your battery really fast.
So we need some mechanism in order to send data only on a certain interval.
And you're going to learn this in the next lecture.