Internal MCU temp reading code

If anyone interested, this reads the temperature of the MCU die.

#include <nrf.h>         //internal temprature only!!!!
#include <nrf_temp.h>    //internal temprature only!!!!
#include <Arduino.h>

int32_t temp;  //internal temperature only!!!!
int actualTemp;  //internal temperature only!!!!

void setup() {
  // put your setup code here, to run once:
 Serial.begin(115200);
  delay(100);
}


void tempMCU()  {
  //internal MCU temperature only!!!!///  START////////////////////////////////////////////////////////////
  while (sd_temp_get(&temp) != NRF_SUCCESS);
  actualTemp = ((int)temp * 25 / 100);
  Serial.print("Internal chip temperature in Celcius:  "); Serial.println(actualTemp);   // prints locally on serial terminal
}     //internal MCU temp only//////////END//////////////////////////////////////////////////////////////

void loop() {
  // put your main code here, to run repeatedly:
    tempMCU() ;  // loops back up to MCU temperature read routine
delay(5000); //5 sec delay
}