Skip to product information
Raspberry Pi Temperature Sensor - DS18B20
$7.03
Sale price
$7.03
Regular price
$9.90
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℃.
<>Features:
- • Available for 4B / 3B+ / Zero
- • Working voltage: 3.3
- • Working temperature: -10℃~85℃,±0.5℃
<>
How to use:
Firstly, insert the module to Raspberry PI.
Then, log into your Raspberry PI.
Start UP the 1-Wire interface
sudo raspi-config

Choose 1-Wire

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
