# DS18B20 sensor is in beta mode, code may not work as expected.
# Issue :
# Sensor is not identified by the hardware
from machine import Pin
import time
import onewire
import ds18x20
time.sleep_ms(750)
ow = onewire.OneWire(Pin(5))
ds = ds18x20.DS18X20(ow)
devices = ds.scan()
time.sleep_ms(750)
print('found devices:', devices)
Loading
ds18b20
ds18b20
4.7 KΩ