Temp Sensor (ds18b20)

Basic tutorial of how to setup a DS18b20 temp sensor with the raspberry pi. PARTS: RPI 3 – https://amzn.to/2VA9pQY 4 Amp Power Adapter – https://amzn.to/2CTptWu 16GB micro SD – https://amzn.to/2SFMwd3 120 pcs jumper cable: https://ebay.to/2VAb9cY ds18b20 sensor – https://amzn.to/2M5yHSN SCHEMATIC: CODE: #!/usr/bin/env python import os def sensor(): for i in os.listdir('/sys/bus/w1/devices'): if i != 'w1_bus_master1': ds18b20 = i … Read moreTemp Sensor (ds18b20)