Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1251

Python • Reading a DS18B20

$
0
0
I am reading 2 DS18B20 temperature sensors after using:

Code:

from ds18b20 import DS18B20
and although it appears to read them alright, it keeps giving an error:

Code:

Index error: list index out of range
Is there a better or generally recommended method of reading these devices
Thank you

Statistics: Posted by RDS — Mon Dec 25, 2023 4:51 pm



Viewing all articles
Browse latest Browse all 1251

Trending Articles