Skip to content

Temperature Probe

A waterproof DS18B20 temperature probe plugs into the Breakout Module's 1Wire port and reads temperature from wherever you run the cable, a fridge, a freezer, a fish tank, outdoors. It's the same probe our TEMP-1 and TEMP-1B use.

Choose a probe

Both probes read -55°C to 85°C (-67°F to 185°F) with ±0.5°C accuracy. Pick the cable length that fits your project.

Probe Cable Good for
1.5m (~5ft) Waterproof Flat Cable Long Fridges, freezers, fish tanks, reaching across a room.
20cm (~8in) Waterproof Flat Cable Short Tight spaces close to the device.

Attach the probe

Plug the probe's connector into the 1Wire port at the top right of the Breakout Module with the latch side facing up.

The probe's data line is on GPIO6.

Add to ESPHome Device Builder

In your device config, add two components:

  1. The One Wire component, set to GPIO6. This sets up the bus the probe talks on.
  2. A Dallas Temperature sensor, which reads the probe on that bus.

Flash the device, and the temperature reading shows up alongside your other entities. You can wire more than one probe to the same 1Wire port and read each one separately.

Working YAML

Prefer editing YAML directly? This is all a single probe needs:

one_wire:
  - platform: gpio
    pin: GPIO6

sensor:
  - platform: dallas_temp
    name: "Temperature"
    update_interval: 60s

With one probe on the bus you can leave the address out, ESPHome finds it. Running more than one? Give each dallas_temp sensor its own address: (ESPHome logs the addresses it detects on boot) so the readings don't swap around.

New to ESPHome? We're here to help.

Stuck on a step or want to show off what you built? Ask questions and share projects with the Apollo community.

Join our Discord Community Forum