The problem
Desktop CPU Temperature Monitor with Fan Speed Alerts and Logging is a Python desktop utility that watches a computer's processor temperature and fan speed continuously, so overheating is caught before a crash. Most desktop users have no idea how hot their CPU runs: Windows ships no built-in per-core temperature graph, no fan-speed history and no warning before the processor protects itself by throttling or shutting down. The result is guesswork — a slow machine gets blamed on viruses or old age while the real cause is a clogged heatsink, a dead fan or dried thermal paste, and parts are replaced on suspicion because there is no record of what actually happened. This project closes that gap by reading the processor's own on-die thermal sensors, showing live per-core temperatures and fan RPM on a dashboard, and writing every reading to a CSV log, so a thermal problem arrives as a timestamped warning with evidence instead of a sudden shutdown.
On-die thermal sensors and fan tachometers report temperature and RPM.
Follow the working sequence
How it works
The monitor works as a short pipeline from silicon to screen: the processor's on-die thermal sensors and the fan tachometer are read once per second through the LibreHardwareMonitor library on Windows or lm-sensors on Linux, and each sample — package temperature, six per-core temperatures, two fan speeds and CPU load — is handed to a threshold engine and to the logger at the same time. The threshold engine compares the package temperature with the warning and critical limits and the fan speeds with the stall floor, raising a tray notification and writing an alert row whenever a limit is crossed, and clearing the banner when readings fall back. Meanwhile the Tkinter dashboard redraws the live graph and the per-core bars from the newest sample, and the CSV logger appends the same sample to the session file, so the screen, the alert history and the log file can never disagree about what happened.
- LibreHardwareMonitor (Windows) or lm-sensors (Linux) exposes the CPU temperature sensors in °C and fan sensors in RPM; the app enumerates them at startup and lists exactly which sensors it found.
- A polling thread samples all sensors once per second (design target) and passes each sample through a queue, so the user interface never blocks while sensors are read.
- The threshold engine compares package temperature with the warning (75 °C) and critical (90 °C) defaults and fan speed with the stall floor (400 RPM).
- On a crossing, the app raises a system-tray notification, colours the dashboard banner, and writes an alert row to the history table and the CSV log.
- The Tkinter dashboard redraws the 60-second temperature and fan graph and the per-core temperature bars from the newest sample.
- Every sample is appended to a timestamped CSV file; closing a session writes a threshold report covering peak temperature, mean temperature, time above the warning line and alert count.
Builder note: the temperature never comes from Windows itself — the built-in Win32_TemperatureProbe WMI class is unpopulated on most consumer desktops, so the reading travels from the on-die sensor through the CPU's own telemetry into LibreHardwareMonitor's sensor tree and only then into the app, which is why the first thing the app does at startup is list exactly which sensors it found.
Tech stack:
- Python 3.12
- Tkinter
- LibreHardwareMonitor 0.9.4
- lm-sensors (Linux)
- psutil
- CSV logging
- Tkinter canvas graphs
- Git
| Parameter | Value |
|---|---|
| Reference CPU | Intel Core i5-12400, 6 cores / 12 threads (datasheet) |
| TjMax (reference CPU) | 100 °C junction temperature (Intel datasheet value) |
| Poll interval | 1 second (design target) |
| Temperature range displayed | 0–100 °C |
| Warning threshold | 75 °C (default, configurable 60–90 °C) |
| Critical threshold | 90 °C (default, configurable 80–98 °C) |
| Fan-stall floor | 400 RPM (default, configurable 0–800 RPM) |
| Log format | CSV, 1 row per second (design target) |
| History graph window | 60 seconds (rolling) |
| Platform | Windows 10 / 11 or Linux desktop with lm-sensors |
Project features
The monitor is built around four capabilities that work together: live per-core temperature and fan-speed readings refreshed every second, a dashboard that graphs temperature and fan speed against the warning and critical lines, configurable alerts that warn before the processor's TjMax limit is approached, and CSV logging that keeps a complete session record for later analysis. The live graph makes thermal behaviour visible in the moment — a spike during a game or a render is seen as it happens, with the fan curve following it. The alert system is the part that prevents damage: warning at 75 °C, critical at 90 °C and a fan-stall alert below 400 RPM, each with a tray notification and a log entry. The CSV log is what makes the project defensible in a viva: every claim about temperatures, fan response and throttling headroom can be pointed to in a timestamped file rather than asserted from memory.
- [Live per-core temperature dashboard] Package temperature, all 6 per-core temperatures, fan RPM, CPU load and session uptime on one screen, refreshed once per second (design target) with headroom to TjMax shown next to every reading.
- [Live temperature and fan history graph] A rolling 60-second graph of package temperature and fan speed with the 75 °C warning and 90 °C critical lines drawn on it, so a spike and the fan's response are visible together.
- [Configurable temperature alerts] Warning (default 75 °C) and critical (default 90 °C) thresholds set from sliders, each raising a system-tray notification, colouring the dashboard banner and writing an alert row when crossed.
- [Fan-speed monitoring and stall alert] Both fan speeds shown in RPM with PWM percentage; an alert fires if any monitored fan drops below 400 RPM for 10 seconds, the classic sign of a dead fan or a loose header.
- [CSV session logging] Every reading written as one timestamped CSV row per second (design target), with a session history table, per-session threshold report and one-click export of the full log.
- [TjMax-aware thresholds] Defaults are derived from the reference CPU's datasheet TjMax of 100 °C (Intel Core i5-12400), so a warning at 75 °C always means 25 °C of headroom remains — thresholds are set from a real limit, not a guess.
- [Alert history table] Every alert kept with time, sensor, reading, threshold and action taken, so the full thermal story of a session can be reviewed after the event.
Optional on request (not part of the base build): GPU temperature monitoring and automatic fan-curve control.
What is included
- Complete Python source code (Tkinter app, sensor reader, threshold engine, CSV logger)
- Working demo dashboard (single-file HTML demo of the interface with sample data)
- Threshold and alert configuration with defaults derived from the i5-12400 datasheet TjMax
- Sample CSV logs and a session threshold report template
- Project report PDF (background, sensor-readout mechanism, architecture, methodology, results)
- PPT presentation for final review
- Viva Q&A preparation document (sensors, WMI, TjMax, threading, CSV analysis)
Limitations & prerequisites
- Sensor availability depends on the motherboard and CPU: some boards expose no per-core sensors, and the app reports exactly which sensors it found at startup.
- Win32_TemperatureProbe, the built-in Windows WMI temperature class, is unpopulated on most consumer desktops, which is why the build reads through LibreHardwareMonitor instead of relying on it.
- Some sensors need administrator rights on Windows; without them, fan readings may be missing.
- The app monitors and warns; it does not change fan speed or prevent throttling in the base build — automatic fan control is optional.
- Logged temperatures are the processor's own on-die sensor values; absolute accuracy depends on the sensor and is not independently calibrated, and no accuracy figure is claimed.
- CSV files grow at approximately 1 row per second (design target), so a 24-hour session is approximately 86,400 rows — long sessions should be split or archived.
- The demo dashboard shows sample data and does not read live hardware; the delivered Python app reads real sensors.
Frequently Asked Questions
Is this project suitable for a final-year project?
Yes, for Computer Science and Information Technology programs, because it combines desktop GUI development, hardware interfacing through a documented library, multi-threaded polling, threshold logic and data logging with analysis in one complete build, with real recorded data to present and analyse. The CSV logs give the student real recorded data to present and analyse, and the sensor-readout mechanism — including why Windows' own temperature class cannot be used — makes a strong viva discussion.
How does the app read CPU temperature — does Windows provide it directly?
No. Windows has a WMI class called Win32_TemperatureProbe, but it is unpopulated on most consumer desktops, so the app reads through the LibreHardwareMonitor library instead, which exposes the processor's on-die thermal sensors and fan sensors through its hardware and sensor classes. On Linux the same values come from lm-sensors. The app lists exactly which sensors it found at startup, so a missing sensor is visible immediately rather than silently showing zero.
What happens when the CPU gets too hot?
The app raises a tray notification and colours the dashboard banner as soon as the package temperature crosses the warning threshold of 75 °C, and a second, more urgent alert at the critical threshold of 90 °C, with both events written to the alert history and the CSV log. The thresholds sit 25 °C and 10 °C below the reference CPU's datasheet TjMax of 100 °C, so warnings arrive with real headroom left. The app monitors and warns; it does not change fan speed in the base build.
Does it work on Linux as well as Windows?
Yes. On Windows the sensor reader uses the LibreHardwareMonitor library, and on Linux it uses lm-sensors, with the same dashboard, thresholds, alerts and CSV logging on both platforms, so the project works on either operating system without changing what it does. The only platform difference is the sensor source and the setup step: Linux needs lm-sensors configured with sensors-detect, while Windows needs LibreHardwareMonitor and administrator rights for some sensors.
Can the thresholds and logging be customised?
Yes. Warning, critical and fan-stall thresholds are set from sliders on the Alerts screen and saved to a settings file, and the poll interval and log folder are configurable the same way, so thresholds can be matched to any processor's datasheet limit without editing code. The dashboard layout, alert actions and CSV columns can also be changed in the source, and GPU temperature monitoring or automatic fan-curve control can be added as optional customisations on request.
What will I receive with the project?
The complete Python source code for the Tkinter app, sensor reader, threshold engine and CSV logger, plus a working demo dashboard, sample CSV logs, a session threshold report template, the project report PDF, a PPT for final review and a viva Q&A document. Everything is prepared fresh for the order, with the thresholds derived from the reference CPU's datasheet and the sensor setup documented for the student's own machine.
Components & software requirements
- Python 3.12
- Tkinter
- LibreHardwareMonitor 0.9.4
- lm-sensors (Linux)
- psutil
- CSV logging
- Tkinter canvas graphs
- Git
Delivery information
Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.
Support terms
Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.
Download free synopsis (PDF)
Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.