Indoor Temperature Monitor

Indoor Temperature Monitor basically is a simple Arduino based project for monitoring and logging indoor temperatures of my house using the application that I created in .NET C#. Since I have old, unused Arduino Uno board, so I bought 1-wire digital temperature sensor (DS18B20) and make use of my Arduino board for this simple project. It’s better rather than just throw it away..

Hardware - Arduino board setup with DS18B20

DS18B20 with Arduino Uno

Here’s the Arduino sketch, compiled with Arduino software v1.6.13

#include <OneWire.h>
#include <DallasTemperature.h>

#define ONE_WIRE_BUS 2 /* Connect to Pin 2 */

/* Set up a oneWire instance to communicate with any OneWire device*/
OneWire ourWire(ONE_WIRE_BUS);

/* Tell Dallas Temperature Library to use oneWire Library */
DallasTemperature sensors(&ourWire);

void setup() /* SETUP: RUNS ONCE */

//Serial.println("Temperature Sensor: DS18B20");

/* Start up the DallasTemperature library */


void loop() /* LOOP: RUNS CONSTANTLY */

//Serial.print("Requesting temperature...");
sensors.requestTemperatures(); // Send the command to get temperatures

//Serial.print("Device 1 (index 0) = ");
//Serial.println(" Degrees C");


Pheww…so simple right?

Software - Indoor Temperature Monitor application

Indoor Temperature Monitor is a simple WPF application I created in .NET C#. This application uses OxyPlot for the graph plotting and reads temperature values sent by Arduino board using serial port connection. The background color of the current temperature will automatically change based on a certain temperature range. The temperature reading will be logged into a CSV file for a certain interval of time. Take a look on the screenshot of the application below.

Indoor Temperature Monitor

If you found this application is interesting, you may have a look at the source code published on my GitHub, or you may download the latest compiled binary version from the release page to see how the application looked like when run in your PC.