Wiring
Connect your DS18B20 sensor to a digital input on your development board. You'll also need to add the 4.7 KΩ pull-up resistor to the signal line to ensure the board can read the sensor. Here's an example of wiring a standalone DS18B20 to a Feather ESP32 V2 board:
- Left-most leg of the sensor (with the flat part facing you) to board ground.
- Middle leg of the sensor to board D14.
- Right-most leg of the sensor to board 3.3V.
- 4.7 KΩ resistor connected to both the middle leg (data) and right-most leg (3.3V).
Or if you're using a waterproof or high-temperature probe, here's an example of the wiring to a Feather ESP32 V2 board:
- Black wire (or solid white on high-temperature probe) to board ground.
- Orange wire (or white with a blue stripe on high-temperature probe) to board D14.
- Red wire (or white with an orange stripe on high-temperature probe) to board 3.3V.
- 4.7KΩ resistor connected to both the data line on one side (D14) and the power line (3.3V) on the other side
Page last edited March 08, 2024
Text editor powered by tinymce.