It seems plausible It seems plausible that you could change the (that you could change the #include <DS18B20.h> usages in the two libraries you cited to #include "OneWireNg_CurrentPlatform.h" and find that they then work fine. I have not tried this yet. If that's of particular interest to you I will try it and update#include <DS18B20.h> usagesUpdate below in). However, this stock example from the two libraries you citedOneWireNG library is not crashing and is printing temperatures that rise and fall expected when I manipulate the temperature of the sensor.
OneWireNg with Matmunk and DallasTemperature libraries
In general
It turns out that it is unnecessary to modify libraries that were using the original OneWire, not even just changing the #include . Despite the OneWireNg example using "OneWireNg_CurrentPlatform.h" and find that they then work fineit also provides a OneWire. Ih header. It is sufficient to have OneWireNg installed but the original OneWire library must uninstalled (or moved out of the libraries directory) so as not triedto confuse the build process into selecting the original library based on the header name over the OneWireNg library. The OneWireNg authors may have used the OneWireNg specific header in the examples to avoid this yetproblem wit their examples when both libraries were installed. If that'sThey've gone out of particluar interesttheir way to you I will trymake it and updatecompatible with the original, but below are reports of specific tests with the two libraries mentioned anyway. However
Matmunk library with OneWireNg
With OneWireNg installed and the original OneWire not installed, this stock example from the OneWireNGMultiple example form the matmunk library worked with the same minor modifications mentioned before (I used pin 28 rather than 2 and SerialUSB rather than Serial). In case your wondering the only reason why I switched from testing Single to Multiple is not crashingthe latter didn't require that I first find and enter my part's address. That example is printing temperatures that rise and fall expected whenin accordance with manipulation of the sensor.
DallasTemperature with OneWireNg
Likewise I manipulatetested with the temperatureMultiple example from the DallasTemperature library. Same kind of modifications to the example. I changed ONE_WIRE_BUS to 28 for my setup. I changed Serial to SerialUSB. And runs normally and prints expected temperatures under manipulation of the sensor.