How can I use DS18b20 one wire sensor with Jetson nano

Anybody can help me?
Thanks advance!

I use pypi installed adafruit_onewire, and adafruit_ds18x20,but when I run :

import board
from adafruit_onewire.bus import OneWireBus
ow_bus = OneWireBus(board.SCLK_1)
devices = ow_bus.scan()
for d in devices:
print(“ROM={}\tFamily=0x{:02x}”.format(d.rom, d.family_code))

the result is:Traceback (most recent call last):
File “/home/a/UnderwaterAI/”, line 3, in
ow_bus = OneWireBus(board.SCLK_1)
File “/home/a/.local/lib/python3.6/site-packages/adafruit_onewire/”, line 62, in init
self._ow = busio.OneWire(pin)
File “/home/a/.local/lib/python3.6/site-packages/”, line 481, in init
raise NotImplementedError(“OneWire has not been implemented”)
NotImplementedError: OneWire has not been implemented
Cleaning up pins

Hi @1762165759 . Here is a reference for you. Configuring DS18B20 temperature sensor using python on Jetson Nano. please have a look, hope this will help you.

Thank you


Thank you!