(Domotics) Raspberry Thermal control DS18B20

Use DS18B20 with Raspberry for read temperature in Celsius using 1wire communication
Connect Raspberry to DS18B20 for read temperature in Celsius using 1wire communication.
If you use Rasdebian:
to enable bus 1 wire
sudo nano /etc/modules
and add this 2 lines
w1_gpio
w1_therm
save and close.
sudo reboot
After Reeboot, you could find the sensor in "/sys/bus/w1/devices/"
to test if device exist type
ls -l /sys/bus/w1/devices/
the right response are similar this:
total 0 drwxr-xr-x 2 root root 0 mar 28 19:59 ./ drwxr-xr-x 4 root root 0 mar 28 19:59 ../ lrwxrwxrwx 1 root root 0 mar 28 19:59 28-00000425a65d -> ../../../devices/w1_bus_master1/28-00000425a65d/
if device exist you can proceed :)