1. Home
  2. Products
  3. Sensors

Sensorfamilies

Sensors: the 1-Wire chips behind Midon Design's kits

Every Midon Design interface, from the TEMP05 to the TEMP08 and the LOG08 loggers, depended on a handful of Dallas Semiconductor 1-Wire chips. This page groups them by what they measure, explains the few facts that matter when wiring them up and lists the small sensor boards Midon Design built around them.

  • Bus1-Wire, data plus ground
  • AddressUnique 64-bit ROM ID
  • Common packageTO-92
  • Typical cableCAT-5, up to 300 ft

First published April 12, 2003 · Text rewritten 2026

Isometric illustration of three TO-92 sensor chips, a humidity sensor board, an iButton key fob and a surface-mount chip (AI-generated image)

What makes a sensor 1-Wire

A 1-Wire device talks to its bus master over a single data line plus a ground return. Many devices share that line, and each one is told apart by a 64-bit ROM ID laser-set at the factory: an 8-bit family code that identifies the chip type, a 48-bit serial number and an 8-bit CRC that lets the master check the address was read correctly. Because the family code is part of the address, an interface such as the TEMP08 1-Wire serial interface can work out what kind of sensor it has found without being told.

Many 1-Wire chips can also run on parasite power. Instead of a separate supply pin, the chip charges an internal store while the data line sits high and runs from that charge while the line is pulled low. Parasite power keeps wiring to two conductors, but tasks that draw more current, such as a temperature conversion, leave less margin, so long networks often provide a local 5 V supply on a spare pair instead.

Nearly all the chips on this page were designed by Dallas Semiconductor, which became part of Maxim Integrated, which in turn became part of Analog Devices. Datasheets and product pages now sit with Analog Devices. On a modern computer the same chips are read by OWFS, the Linux w1 kernel driver or the Home Assistant 1-Wire integration.

Sensor families at a glance

The table lists the chip families that appear most often in Midon Design documentation, with the family code each one reports in its ROM ID.

ChipFamily codeMeasures or doesTypical use
DS18S2010hTemperature, 9-bit, −55 to +125 °CRoom, attic and outdoor thermometers
DS18B2028hTemperature, 9 to 12 bit selectable, −55 to +125 °CGeneral thermometers, probes
DS182222hTemperature, 9 to 12 bit, lower accuracy gradeLow-cost thermometers
DS243826hBattery monitor: temperature plus voltage A/DHumidity sensors, barometers, voltage monitors
DS24231DhMemory with two external pulse countersRain gauges, wind speed, lightning counters
DS245020hQuad A/D converterWind direction (AAG V3 station), voltage sensing
DS240829h8-channel programmable I/ORelays, inputs, LED displays (1WIO)
DS240612hAddressable switch with memoryContact inputs, simple outputs
DS243014h256-bit EEPROMSmall data or configuration storage
DS1920 iButton10hTemperature in a stainless steel canRugged thermometer
DS1990A iButton01hUnique serial number onlyKeys and access control

Temperature chips

Three thermometer chips cover almost every Midon installation, and all three come in the familiar three-lead TO-92 package.

DS18S20

The DS18S20 was the workhorse of the TEMP05 era. It reports temperature with 9-bit resolution over −55 to +125 °C and is accurate to ±0.5 °C between −10 and +85 °C. Midon Design supplied it in TO-92 form as part number MD3003. It replaced the older DS1820, which came in a different package and had lower accuracy.

DS18B20

The DS18B20 keeps the same range and accuracy but lets the resolution be set from 9 to 12 bits. Higher resolution takes longer: a 12-bit conversion needs up to 750 ms. It is the chip most people meet today, often sealed inside stainless steel probes.

DS1822

The DS1822 is a lower-cost relative of the DS18B20 with the same programmable resolution and a looser accuracy grade of ±2 °C. It works fine where trends matter more than tenths of a degree.

All three can run on parasite power. When they do, the unused supply pin should be grounded, a point Midon's documentation repeated often because a floating pin causes erratic readings. The TEMP05 frequently asked questions cover this in detail.

Isometric illustration of five small three-legged sensor packages in different colours standing in a row (AI-generated image)

Humidity, barometric and voltage sensing

The DS2438 was designed as a battery monitor, but its combination of a temperature sensor and a voltage A/D converter made it the standard way to put analog sensors on a 1-Wire bus. A humidity element that produces a voltage proportional to relative humidity is wired to the DS2438's voltage input, and the bus master turns that voltage and the chip's own temperature into a humidity figure. Barometers and general voltage monitors use the same trick with a different analog front end.

The MD3020E humidity and temperature sensor

Midon Design's own humidity board, the MD3020E, paired a DS2438 with a sealed HIH4021 humidity sensor and added a DS18S20 thermometer. An on-board regulator converted up to 30 VDC down to the 5 VDC needed by the humidity sensor and by any locally powered sensors further down the line. A jumper, J3, selected parasitic (P) or local (L) power for the DS18S20. The DS2438 and humidity sensor always needed either +5 VDC or the 9 to 30 VDC input. When the DS18S20 ran on parasitic power, the matching sensor option also had to be set to P in the interface. The board measured 1.9 by 2.1 inches and connected through an RJ-12 jack. It was withdrawn before the company closed. The 1-Wire humidity sensor guide explains the measurement in more depth.

Counters, converters and switches

DS2423 counter

The DS2423 combines memory with two 32-bit counters that increment on external pulses. A rain gauge's tipping bucket, the reed switch of an anemometer or a lightning detector each produce pulses, and the bus master reads the running total and works out the rate. Weather stations read by the TEMP05 used the DS2423 for wind speed.

DS2450 quad A/D

The DS2450 has four analog inputs with selectable resolution. AAG used it in the Version 3 weather station to replace the older DS2401-based wind direction sensing, and the LOG08 loggers could record DS2450-based voltage sensors.

DS2408 and DS2406 switches

The DS2408 offers eight programmable I/O channels, each usable as an input or an open-drain output. It is the heart of the 1WIO multi-purpose sensor, which uses it for relays, opto-isolated inputs and LED displays. The DS2406 is a smaller addressable switch with built-in memory. In its TO-92 form, which Midon Design supplied as MD3023, only a single input/output channel is available, and that part was RoHS compliant.

DS2430 EEPROM

The DS2430 stores 256 bits of EEPROM. It measures nothing, but it is useful for keeping identification or calibration data on a sensor assembly. Midon Design supplied it in TO-92 form as MD3011.

iButtons and Midon sensor boards

An iButton is a 1-Wire chip sealed in a 16 mm stainless steel can. The can itself forms the two contacts, so an iButton can be read by touching it to a probe. The DS1920 is a thermometer in this form and reads like a DS1820, while the DS1990A carries only a serial number and is used as a key. The LOG08 could display iButtons for security applications. Midon Design also built a range of small boards around these chips, listed below. All are discontinued; the company stopped selling at the end of 2023.

MD3003 DS18S20

The DS18S20 thermometer in a TO-92 package, the standard sensor for TEMP05 and TEMP08 networks.

MD3023 DS2406

Single-channel 1-Wire input/output chip in a RoHS compliant TO-92 package.

MD3011 DS2430

256-bit 1-Wire EEPROM in a TO-92 package.

MD3030 current transformer

Split-core current transformer that could be connected to a TEMP08 for current sensing.

MD3020E humidity sensor

DS2438 and HIH4021 humidity board with a DS18S20, regulator and RJ-12 jack.

MD208x 1WIO

DS2408-based multi-purpose board for relays, inputs and LEDs, including the MD2083 four-relay version.

Further reading: DS18B20 product page (Analog Devices) · DS2438 product page (Analog Devices) · Linux kernel documentation: 1-Wire subsystem

Questions and answers

What is the difference between the DS18S20 and the DS18B20?

Both measure −55 to +125 °C with ±0.5 °C accuracy between −10 and +85 °C. The DS18S20 has a fixed 9-bit resolution and family code 10h. The DS18B20 has family code 28h and lets the resolution be set from 9 to 12 bits, with a 12-bit conversion taking up to 750 ms.

How does a 1-Wire humidity sensor work?

A humidity element that outputs a voltage is connected to the voltage input of a DS2438 battery monitor chip. The bus master reads that voltage together with the DS2438's temperature and calculates relative humidity. Midon Design's MD3020E used an HIH4021 element with a DS2438 and added a DS18S20 thermometer on the same board.

Which 1-Wire chip is used for rain gauges?

Rain gauges on 1-Wire networks are normally built around the DS2423, which contains two external pulse counters. Each tip of the gauge's bucket closes a switch and adds one to the count. The bus master reads the running total and converts it to rainfall. The same chip counts anemometer rotations and lightning strikes.

Can 1-Wire sensors run without a separate power wire?

Many can, using parasite power. The chip charges an internal store while the data line is high and runs from it during communication. Thermometers such as the DS18S20 and DS18B20 support this. For long cables or many sensors a local 5 V supply is more reliable, and the unused supply pin must be grounded in parasite mode.

What is an iButton?

An iButton is a 1-Wire chip packaged in a 16 mm stainless steel can whose two halves act as the data and ground contacts. It is read by touching it to a probe. The DS1920 is an iButton thermometer that behaves like a DS1820, while the DS1990A holds only a unique serial number and works as an electronic key.

Related pages