Build a simple circuit by connecting DS18B20 digital sensor to Arduino

DS18B20 Digital Temperature Sensor Connect Arduino

Today I will show you how to use the DS18B20 digital temperature sensor with an Arduino so you can measure the temperature of air, liquids such as water, and the ground.
To connect the DS18B20 digital temperature sensor to Arduino, you need to do the following steps:
‌Hardware connection‌:
Connect the VCC pin of DS18B20 to the 3.3V power pin of Arduino.
Connect the GND pin of DS18B20 to the ground pin of Arduino.
Connect the data pin of DS18B20 to the GPIO pin of Arduino (for example, GPIO4).
Connect a 4.7kΩ pull-up resistor between the data pin and the 3.3V power pin.

继续阅读