Atmega328p internal temperature sensor

Hello everyone. I am the beginner of Arduino, and I found it is the powerful tools for project. I am using Arduino Micro to do one project on equipment research and development. One of my task is to monitor the chip internal temperature. I knew there are internal temperaures in Atmaga328, Atmaga32U4, and I alsol learned that some wise man have developed the codes for Atmaga328, but I didn't find the codes for Atmaga32U4, and evenif I find difficulties in reading through the codes for Atmaga328.

I wonder to know can I copy the codes of Atmaga328 for the use of Atmaga32U4 directly? or could you please give me a hand? thanks very much. my email is shxplf@gmail.com. Thanks a lot.

I am looking forward to improving with you... 8)