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.
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.
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

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

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

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

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

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

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