![use arduino as pc temp monitor use arduino as pc temp monitor](https://duino4projects.com/wp-content/uploads/2013/06/Arduino-House-Temperature-Monitor.jpg)
Open this up in Arduino IDE and upload it to the Trinket. In the folder named “Arduino Code” you will find the code that will be running on the Arduino. You will have to run the Java code as an administrator otherwise you will not receive access to the CPU temperatures. This can cause issues for anyone looking to track exotic cooling such as LN2 where it reached negative temperatures or anyone who is pushing the upper bounds and going to 100+ degrees for whatever crazy reason. I also rely on the CPU and GPU temperatures only being 2 digits. Ideally I would set up a handshake process where the Arduino tells the PC “Hey, it’s me!” and the PC can then confirm that the device is in fact the Arduino before sending any data. I also currently only have the process set up to grab the first USB Serial Device that is found connected to the PC and to send data there. I settled on JSensors as it was very straightforward, efficient and it didn’t rely on any other external programs. Suprisingly Windows doesn’t have a standardized way to get the CPU and GPU temperature so I had to search for a library that would work on my PC. I have the process run at 5hz to ensure that it doesn’t cause any hiccups in performence on the PC side when playing high intensity games or running high intensity tasks, such as Houdini. The Arduino will then read in the received data, parse it out and then have it displayed on the OLED screen. You will get very poor colour depth and resolution but it will work. From there it will send the temperatures of the CPU and the GPU to the Arduino. You need a 4 dollar part from ebay or aliexpress that turns the screen into a VGA monitor. The below is how it works: Arduino is programmed as a web server.
![use arduino as pc temp monitor use arduino as pc temp monitor](https://arduinogetstarted.com/images/tutorial/arduino-dht11-lcd-wiring-diagram.jpg)
You can access the web page provided by Arduino to check the temperature from a DS18B20 temperature sensor. I have a Java application that will look for any USB Serial devices and then attempt to open a connection with them. In this tutorial, we will learn how to program Arduino to become a web server that provides you with the temperature via the web. I used Arduino C and Java with the jSerialComm library and the JSensors library.