Published © GPL3+

Simple Arduino-based Thermometer

Cool thermometer using Sugru and

BeginnerShowcase (no instructions)4 hours7,960

Things used in this project

Hardware components

SparkFun One Wire Digital Temperature Sensor - DS18B20
Male/Male Jumper Wires
Breadboard (generic)
Breadboard (generic)
SparkFun Wall Adapter Power Supply - 12VDC 600mA
Arduino UNO
Arduino UNO
USB-A to B Cable
USB-A to B Cable
Jumper wires (generic)
Jumper wires (generic)
SparkFun 4.7K Ohm Resistor (in kit)
SparkFun 7-Segment Serial Display - Red
SparkFun 7-Segment Serial Display - Red

Software apps and online services

Hand tools and fabrication machines



Read more


Putting together the electronics

Before you begin, make sure you have everything you need. See the detailed BoM (bill of materials) at the top of the Step-by-Step guide.

Once you have all the components, start following the step-by-step guide. There are 11 steps in total. The main things you'll need to do are:

1) Solder male header pins to the 7 segment display.

2) Place all your components on the breadboard in the right direction (exactly as they appear in the diagram)

3) Start connecting them to one another - power, ground, and so on.

You can also download the Fritzing file from there, or you can find it attached here.


basic code

Scroll down in Step-by-Step and you'll find the code section, where you'll find boiler-plate code that will help you test your project. You can browse through the different code libraries and download them in order to upload them to the Arduino.

To upload the code to your Arduino, downloadArduino IDE version 1.6.7 or higher. You can use the Getting Started Guide to set up your work environment.

Remember: this is a boilerplate code to make sure your circuit was assembled correctly.

The test code is set to write "HI" upon initiation and afterwards, it starts counting.

If the temperature exceeds 28 degrees Celsius - the counter will stop.
No preview (download only).

show the temperature

If you want the screen to show the temperature all the time, copy the code below to the Firmware.ino library.
 #include "Global.h"

/* This code sets up the essentials for your circuit to work. It runs first every time your circuit is powered with electricity. */
void setup() {
    // Setup Serial which is useful for debugging
    // Use the Serial Monitor to view printed messages

/* This code is the main logic of your circuit. It defines the interaction between the components you selected. After setup, it runs over and over again, in an eternal loop. */
void loop() {
       // The display will show the temperature in C, and wipe it after 1000 milliseconds (1 sec) 
        sevenSegment.write(ds18b20.readTempC()); //

Credits team team

29 projects • 596 followers is an online platform that generates wiring and code for Arduino projects. Want to know more? Visit