def get_cpu_temp():
 res = os.popen('vcgencmd measure_temp').readline()
 t_cpu = float(res.replace('temp=', '').replace("'C\n", ''))
 return t_cpu

def get_cpu_temp ( ) : res = os . popen ( 'vcgencmd measure_temp' ) . readline ( ) t_cpu = float ( res . replace ( 'temp=' , '' ) . replace ( "'C\n" , '' ) ) return t_cpu
get cpu temperature .