Use the constructor without parameter `OneWire wire;` and call `wire.begin(pin);` to set the pin. And to use more sensors on different pins, make the OneWire instance member of the DS28EC20 class.