If you want, tell me which board and which OpenWireH repo/version you're targeting and I’ll generate a tailored example sketch.
#include <OpenWire.h>
The "H" variant is optimized for speed, making it ideal for time-sensitive applications like drone stabilization or high-speed industrial monitoring. OpenWireH Library Download: Step-by-Step Installation openwireh library download arduino exclusive
OneWire ds(2); // pin 2