pi:temperature
This is an old revision of the document!
Temperature sensors
18B20 (digital)
At the end of /boot/config.txt:
dtoverlay=w1-gpio
Save and reboot.
ls -l /sys/bus/w1/devices
Grab its address (format 28-00000xxxxxx). Read the temperature with
cat /sys/bus/w1/devices/28-00[address]/w1_slave
The numerical value after t= is the temperature in thousandths of a degree C.
pi/temperature.1511544075.txt.gz · Last modified: 2019/11/07 17:58 (external edit)