raspbian – setting up DS18b20 temperature sensor on raspberry pi

I have been following along with the instructions here:
Connecting a DS18B20 thermal sensor to your Raspberry Pi – Raspberry Pi Temperature

It is a little outdated from 2019 but it’s the best i could find with what I have.

I am using putty to ssh into the pi and enabled the w1 as so:editing config.txt

I then follow the instructions further and reboot my system. I navigate to /bus/w1/devices and here is what I see:

listing devices

If you look at the walkthrough you can see there’s a clear difference between his device name (28-02199245e07b) and mine. There are 3.

When I CD into either of those 3 devices here is what I see. I am supposed to see a file called “w1_slave” according to the author.

contents of device folder

After closing my putty session and opening a new one I went back to that directory and the names of the devices all changed:

devices name changed

What am I doing wrong? What am I missing?

Is there an easier way to go about this?

My objective is to have multiple sensors collecting data and eventually store it in a mysql database. Then – create a dashboard using python to display the temperatures and related information.

Read more here: Source link