Source: https://mokxi.com/ideas/ds18b20-projects
Updated: 2026-11-17

Projects / Project ideas
Project ideas by part

# Projects with a DS18B20 sensor

7 Mokxi projects use a DS18B20 sensor (1 beginner, 2 intermediate and 4 advanced). They run on Arduino Uno boards. Here are all of them, from “DS18B20 temperature sensor on pin 2” to “HVAC thermostat”. Each card says what the project does, the board and parts it needs and its level, and Open in the simulator runs it in your browser in one click, with no account.

First project

## How to pick your first one

- Start with “DS18B20 temperature sensor on pin 2”, a beginner project that needs a DS18B20 sensor.
- All of them run on an Arduino Uno, so that is the one board you need.
- The parts used most here are the LED (3 projects), the slide switch (2) and the DS3231 real-time clock (1). With those on hand, most of this list is open to you.
- Before you build one on a real bench, read the DS18B20 temperature sensor wiring guide for your board below. It gives every pin and the voltage notes.

Projects

## 7 projects ready to run

### DS18B20 temperature sensor on pin 2

A DS18B20 on pin 2, with a 4.7k pull-up on its data line, measures the temperature over one wire; the Dallas library reads it once a second.

Board

Arduino Uno R3

Parts

DS18B20 temperature sensor

Level

Beginner

Open in the simulator

### Thermometers on one wire

Two DS18B20s on pin 2 and one 4k7 pull-up. The 1-Wire search finds both by their serial numbers, and each is then read by name.

Board

Arduino Uno R3

Parts

DS18B20 temperature sensor, resistor

Level

Intermediate

Open in the simulator

### Temperature data logger with an SD card

A DS18B20, a DS3231 clock and a microSD card: every 5 seconds a dated temperature line goes into TEMPLOG.CSV, ready to open in a spreadsheet.

Board

Arduino Uno R3

Parts

MicroSD card module, resistor, LED, DS18B20 temperature sensor, DS3231 real-time clock

Level

Intermediate

Open in the simulator

### nRF24L01 sensor network with RF24Network

Two nRF24L01 sensor nodes send DS18B20 temperatures to a base node every 2 seconds, and the base shows each one on an LCD.

Board

Arduino Uno R3

Parts

NRF24L01+ 2.4 GHz radio, I2C LCD, DS18B20 temperature sensor

Level

Advanced

Open in the simulator

### Deep-sea dive computer

A pressure transducer turned into depth (about 1 atm per 10 m of sea water), a DS18B20 water probe.

Board

Arduino Uno R3

Parts

0.5 to 4.5 V pressure sender, DS18B20 temperature sensor, resistor, SSD1306 OLED display, piezo speaker

Level

Advanced

Open in the simulator

### Delta-T monitor

Two DS18B20s on one wire read supply and return air: the drop across the coil is judged only while the cooling call runs and has settled.

Board

Arduino Uno R3

Parts

DS18B20 temperature sensor, float switch, relay module, slide switch, resistor, +1 more

Level

Advanced

Open in the simulator

### HVAC thermostat

A two-stage heat and cool thermostat on an Uno: W1, W2, Y1, Y2 and G on LEDs, compressor minimum on and off times.

Board

Arduino Uno R3

Parts

DS18B20 temperature sensor, slide switch, potentiometer, resistor, LED

Level

Advanced

Open in the simulator

Keep going

## Wiring, libraries and more ideas

The DS18B20 temperature sensor part page Every project ideas list

### Wiring guides

- DS18B20 to Arduino Uno
- DS18B20 to Arduino Mega
- DS18B20 to Arduino Nano
- DS18B20 to ESP32
- DS18B20 to Raspberry Pi Pico

### Library pages

- DallasTemperature library
- OneWire library
- GyverDS18 library
- microDS18B20 library
- Adafruit GFX library
- Adafruit SSD1306 library

### More project ideas

- Arduino Uno project ideas
- LED projects for Arduino, ESP32 and Pico
- Projects with a slide switch
- Projects with a DS3231 real-time clock
- Projects with a float switch
- Projects with an I2C LCD
- Projects with a microSD card module
- Projects with an nRF24L01 radio
