My system was working 100% with two sensors on the GPIO 4 for 1w. The damn wire broke and think I damaged the GPIO 4 pin as the sensors aren't being registered. Could I use a different GPIO pin? My boot/cmdline.txt looks like this: dwc_otg.lpm_enable=0 console=tty1 root=/dev//mmcblk0p7 rootfstype=ext4 elevator=deadline fsck repair=yes rootwait modules-load=dwc2,g_serial Any help please. Would prefer to not buy another pi. Thanks

2 Answers 2


Look in /boot/config.txt for the 1-wire configuration.

Change it according to the details given in /boot/overlays/README

Perhaps test your GPIO.



edit /boot/config.txt


w1 driver will use gpiopin 5 after reboot.


# cd /sys/bus/w1/devices/
# ls
28-000009572989  28-000009583ac3  w1_bus_master1
# cd 28-000009572989
# cat temperature 

do a ls /sys/bus/w1/devices/ to see if the system has found any w1 devices at all

23187 = 23.187°C

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.