OneWire alternative library
The OneWire protocol is very timing sensitive. stickbreaker modified the current version maintained by PaulStoffregen/OneWire to work with the ESP32. It is in the Github repo at stickbreaker/OneWire.
For manual installation download the stickbreaker/OneWire
archive, unzip it and place the OneWire folder into the library directory.
In Arduino IDE this is
usually <arduinosketchfolder>/libraries/
In PlatformIO this is
usually <user>/.platformio/lib