The president, 32, also has an integrated temperature sensor, this temperature sensor is part of
the package of the E.S.P 32 and provides information about how hot the microcontroller is running.
You can then use it to keep an eye on its own, whether perhaps its overheating.
It can be used to measure ambient temperature.
But you need to then take into account the fact that the sensor is basically integrated on the chip
of the EPA 32 itself.
So much of the temperature component to much of the heat that is picking up is from its own operation
and not so much from the environment.
So if you do want to take a measurement of the atmospheric temperature, the ambient temperature, it's
best to do that when the device has just started before the device had enough time to heat up itself.
So I've got an example sketch here.
As you can see, I am importing the E.S.P 32 module and I'm using the raw temperature function to get
a temperature reading.
You can find more information about that here in the documentation and the EPA data general board control.
There's a bit of information about the temperature function.
And just keep in mind that the number that comes back is temperature in Fahrenheit, not in Celsius.
So you can use this function to get the temperature in Fahrenheit.
And then in this example, I've got the calculation that converts Fahrenheit into Celsius.
So you can print that out this.
Well, it's got a little delay here.
Just one second.
So let's start the script and see what the current temperature is.
All right.
So about 120 degrees Fahrenheit, which is about forty eight point eighty nine degrees Celsius.
And it's quite hot, actually.
Let's see if I can use my hot air gun to see.
So I'm just blowing hot air on the three 32.
And so the temperature is going up slightly.
So obviously this works as advertised.
No problem.
So I use case for this sensor is, for example, if you are building a outdoors gadget based on your
computer to which perhaps will be under direct sunlight or it might be operating in hot conditions,
it can check on the temperature of the MCU occasionally a few minutes to make sure that it does not
exceed its operational limits.
And if it does get close to the top end of its operation limits, then you can decide to turn off the
device or put it into deep sleep.
Certainly cool down.