I have successfully tested a DS18B20 (Digital Temperature Sensor) with various ESP32 development boards.
I have always used an external pullup resistor of 4.7 kOhm. I have tried to replace it with the internal pullup resistor of the ESP32 without success.
I have used the instruction:
Code: Select all
pinMode(13, INPUT_PULLUP)
Code: Select all
#include "driver/rtc_io.h"
...
rtc_gpio_pullup_en(GPIO_NUM_13);
rtc_gpio_pulldown_dis(GPIO_NUM_13);
Thanks for your attention,
Rafael