I think use watchusing watch
command is much easier, for example:
watch {your command}
In
watch {your command}
In your case, it will be:
watch vcgencmd measure_temp
That
watch vcgencmd measure_temp
That will refresh by 2 seconds, if you want to define the interval by yourself (5 second maybe), you can type:
watch -n 5
In
watch -n 5 <your command>
In your case, it will be:
watch -n 5 vcgencmd measure_temp
You
watch -n 5 vcgencmd measure_temp
You can cancel that with Ctrl+CCtrl+C.