CPU temperature monitoring

cpu temperature monitor windows 10
best cpu temp monitor
cpu temperature gadget
cpu temp monitor reddit
gpu temp monitor
open hardware monitor
cpu temperature range
cpu monitor

For a programming project I would like to access the temperature readings from my CPU and GPUs. I will be using C#. From various forums I get the impression that there is specific information and developer resources you need in order to access that information for various boards. I have a MSI NF750-G55 board. MSI's website does not have any of the information I am looking for. I tried their tech support and the rep I spoke with stated they do not have any such information. There must be a way to obtain that info.

Any thoughts?

For at least the CPU side of things, you could use WMI.

The namespace\object is root\WMI, MSAcpi_ThermalZoneTemperature

Sample Code:

ManagementObjectSearcher searcher = 
    new ManagementObjectSearcher("root\\WMI",
                                 "SELECT * FROM MSAcpi_ThermalZoneTemperature");

ManagementObjectCollection collection = 

foreach(ManagementBaseObject tempObject in collection)

That will give you the temperature in a raw format. You have to convert from there:

kelvin = raw / 10;

celsius = (raw / 10) - 273.15;

fahrenheit = ((raw / 10) - 273.15) * 9 / 5 + 32;

How to Monitor Your CPU Temperature, HWMonitor is a hardware monitoring program that reads PC systems main health CPUs on-die core thermal sensors, as well has hard drives temperature via  Get System Monitor Temp. Get Instant Quality Info at iZito Now!

Actually the best way do to any hardware related coding using WMI is best done through using this WMI Code Creator tool from Microsoft the tool will create the code for you based on what you are looking for and what .Net language you want to use.

The supported langauges currently are: C#, Visual Basic, VB Script.

HWMONITOR | Softwares, For Basic CPU Temperature Monitoring: Core Temp. The most important temperature to measure in your computer is the processor, or CPU. Wireless monitoring of restaurant refrigeration equipment. Early customer savings!!

Note that MSAcpi_ThermalZoneTemperature does not give you the temperature of the CPU but rather the temperature of the motherboard. Also, note that most motherboards do not implement this via WMI.

You can give the Open Hardware Monitor a go, although it lacks support for the latest processors.

internal sealed class CpuTemperatureReader : IDisposable
    private readonly Computer _computer;

    public CpuTemperatureReader()
        _computer = new Computer { CPUEnabled = true };

    public IReadOnlyDictionary<string, float> GetTemperaturesInCelsius()
        var coreAndTemperature = new Dictionary<string, float>();

        foreach (var hardware in _computer.Hardware)
            hardware.Update(); //use hardware.Name to get CPU model
            foreach (var sensor in hardware.Sensors)
                if (sensor.SensorType == SensorType.Temperature && sensor.Value.HasValue)
                    coreAndTemperature.Add(sensor.Name, sensor.Value.Value);

        return coreAndTemperature;

    public void Dispose()
        catch (Exception)
            //ignore closing errors

Download the zip from the official source, extract and add a reference to OpenHardwareMonitorLib.dll in your project.

How to Monitor Your Computer's CPU Temperature, Core Temp is a compact, no fuss, small footprint, yet powerful program to monitor processor temperature and other vital information. What makes Core Temp  View the Top 5 Computer Monitors of 2020. Free 2-Day Shipping & Free Returns. We Provide Expert Tips and Advice To Help Make Shopping Quick and Easy.

CPU CORE TEMP, As long as you don't need an extensive hardware monitoring program and you just want a lightweight and straightforward CPU temp monitor,  The fastest, easiest way to check your CPU temp is using the aptly named Core Temp. Be mindful during installation though! Be mindful during installation though!

9 Best CPU Temperature Monitor Tools for Windows [FREE], Is your PC's processor too hot? Here's how to monitor your computer's CPU temperature, and lower it if needed. For Basic CPU Temperature Monitoring: Core Temp The most important temperature to measure in your computer is the processor, or CPU. Core Temp is a simple, lightweight app that runs in your system tray and monitor’s the temperature of your CPU without cluttering it up with other stuff.

How to check your PC's CPU temperature, Thankfully, it's easy to monitor your CPU temperature in real time, whether that's with third party software or RGB components that change color  Checking your CPU temperature is as easy as firing up a monitoring program and using it to read out the value. Examples of these programs are HWMonitor , Core Temp , or NZXT's CAM .

  • There is a decent sample project at geekswithblogs.net/cicorias/archive/2006/11/22/97855.aspx that might help you get started. Direct link to the zip file containing the solution and all sources: cicoria.com/downloads/TemperatureMonitor/TempMonitorSrc.zip
  • Using Justin Niessner's solution lot of people got System.InvalidOperationException. In order to avoid it, the program should be run in administrative mode.
  • I receive this error: 'enumerator.Current' threw an exception of type 'System.InvalidOperationException'
  • @Aaron - Interesting. I wonder if your motherboard manufacturer supports this WMI monitoring (not all support it).
  • I got a ManagementException not supported on the enumerator.MoveNext() anyone else get this?
  • Sadlyl, Most motherboards do not implement this via WMI. It throws an exception on my system as well.
  • I just want to point out that MSAcpi_ThermalZoneTemperature is NOT the CPU temp; but rather the temperature of an area of the motherboard... which is about as useful as measuring the temperature of a kitchen stove based on the temperature of the kitchen...