Hello everyone on Raspberry Pi forum!
I am doing a small project to measure the ambient temperature using DS18B20 sensor and Raspberry Pi 4. I have connected the wires according to the diagram (using 4.7k resistor between data and power pins), but when I run the command ls /sys/bus/w1/devices/ the sensor does not appear as expected. I have enabled 1-Wire protocol in raspi-config and also rebooted. Has anyone encountered the same error, or can guide me to check the steps in more detail? I would love to receive help from the community as this is my first time trying to connect a sensor to Raspberry Pi. Thanks everyone in advance!
I am doing a small project to measure the ambient temperature using DS18B20 sensor and Raspberry Pi 4. I have connected the wires according to the diagram (using 4.7k resistor between data and power pins), but when I run the command ls /sys/bus/w1/devices/ the sensor does not appear as expected. I have enabled 1-Wire protocol in raspi-config and also rebooted. Has anyone encountered the same error, or can guide me to check the steps in more detail? I would love to receive help from the community as this is my first time trying to connect a sensor to Raspberry Pi. Thanks everyone in advance!
Statistics: Posted by cracksweets — Wed Jun 18, 2025 4:48 am