Raspberry Pi 5 & Pi4 4 update works on 64bits using gpiod
You will need to install gpiod
sudo apt-get install gpiod libgpiod-dev libgpiod-doc
Python module to be done later.
to compile
gcc -o DS18B20Pi5Scan DS18B20Pi5Scan.c -l gpiod
Still beta with gpiod. Not sure how it will perform with multiple GPIO connected. Still need to check if it works with old Pi.
Other Pi method
Method to access the DS18B20 sensor using Rapsberry Pi GPIO
DS18B20V2.c Application to Connect one DS18B20 per GPIO but read them together.
to compile
gcc -lrt -o configDS18B20 configDS18B20.c
gcc -lrt -o DS18B20Scan DS18B20Scan.c
gcc -lrt -o DS18B20V2 DS18B20V2.c
Python Add-on
To install
sudo apt-get install python-dev
sudo apt-get install python3-dev
cd python
sudo python setup.py install
sudo python3 setup.py install
Example
DS_Array.py Read 30 sensors in less than one second using Tkinter
Help inside module
python
help('DS18B20')