Once you have the library, "connecting" a sensor to a logic gate and then to an output takes lines of code, rather than pages.
If you have code requiring OpenWire.h , you generally cannot download it as a separate library. You have two main paths: openwireh library download arduino exclusive
delay(100);