Sysmon works nice. Nicely made, it does much more than measure CPU temperature. It is a command line program, and logs all the data it measured to a file. Also, it is open-source and written in python 2.7.
Sysmon: https://github.com/calthecoder/sysmon-1.0.1