I am using the dev board “B-U585I-IOT02A” from ST electronics. I am trying to display the internal temperature but unable to get them from the available example. My code looks like follows, it would be great if any can support me with it.
"
AnalogIn tempIn(ADC_TEMP);
float tempValue;
float tempConv;
// main() runs in its own thread in the OS
int main() {
while (true) {
tempValue = tempIn.read();
tempConv = tempValue * 3300;
printf(“temp = %f\n”, tempValue); // display chip’s temperature [°C]
printf(“temp = %f\n”, tempConv); // display chip’s temperature [°C]
thread_sleep_for(1000);
}
}
"