Skip to content
Vasco Craveiro Costa edited this page Jul 3, 2015 · 6 revisions

As explained by Adafruit (see the link bellow on Reference), to enable One Wire module (which already comes with the Raspbian OS image, and is used to communicate with sensors and devices like the DS18B20 temperature sensor), you have to add the following line to /boot/config.txt (using your preferred editor, like nano. Don't forget sudo):

dtoverlay=w1-gpio

After rebooting, you have to run the following commands, to conclude One Wire configuration:

sudo modprobe w1-gpio
sudo modprobe w1-therm

Reference