This is a temperature sensor designed for Raspberry Pi, the module uses the digital temperature sensor DS18B20 from Dallas semiconductor, which only requires one IO port to obtain the ambient temperature. The module supports 3.3v and 5V power supply, and the measuring range is -10℃ to 85℃, with an error of ±0.5℃.
Firstly, insert the module to Raspberry PI.
Then, log into your Raspberry PI.
Start UP the 1-Wire interface
Click on YES
Quick the raspi-config and restart your PI.
Run lsmode | grep -I w1_ command and you should get below info.
Finally, you can get the temperature now.
sudo python thermometer.py