add code to read on-chip temperature