<filename>measurements/read-ds18b20-all.py
#!/usr/bin/python

from w1thermsensor import W1ThermSensor

for sensor in W1ThermSensor.get_available_sensors():
    print("Sensor %s has temperature %.2f" % (sensor.id, sensor.get_temperature()))

<filename>measurements/read-ds18b20-all.py
#!/usr/bin/python

from w1thermsensor import W1ThermSensor

for sensor in W1ThermSensor.get_available_sensors():
    print("Sensor %s has temperature %.2f" % (sensor.id, sensor.get_temperature()))

#!/usr/bin/python