Time to build a temperature sensor with my Pi.
Schematics
Configure the Pi
Update the OS
apt-get update
apt-get ugrade
Setup kernel modules for GPIO and 1-wire device
modprobe w1+gpio
modprobe w1+therm
Check setup
cd /sys/bus/w1/devices
ls
cd XX
cat XX
Result:
?
Code