Skip to content
Vasco Craveiro Costa edited this page Jul 6, 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

In order to the needed modules to be loaded on boot time, add the following lines to file /etc/modules:

w1-gpio
w1-therm

[DEPRECATED STEP] After rebooting, you have to run the following commands, to conclude One Wire configuration:

sudo modprobe w1-gpio
sudo modprobe w1-therm

Reference