import onewire
import time, ds18x20
from machine import Pin
ow = onewire.OneWire(Pin(26))
ds = ds18x20.DS18X20(ow)
roms = ds.scan()
print("roms=",roms) # roms= [bytearray(b'(\x19\x1e\xbf\x0b\x00\x00\xc7'), bytearray(b'(\xd2*y\x97\x13\x03\xc3')]
while(1):
ds.convert_temp()
for rom in roms:
temp=ds.read_temp(rom)
print(temp)
print()
time.sleep_ms(5000)