How to add a second DS18b20 temp sensor to raspberry pi

hi all,

how do i add a second DS18b20 temp sensor to raspberry pi, i have the first one wired to GPIO 4 for automatic detection, how do i find out the slave address for the second sensor?

Add your second (third, fourth, etc.) to the same 5v, Gnd, and GPIO4. Make sure you have your 4.7k ohm resistor. Auto discovery should find it under your raspi device.

thanks for your reply i found this drawing online

1 Like

So how many of these temp sensors can be powered off the raspberry pi?

You can connect as many as you want but use an external power source to power the temp sensor.

1 Like