The correct sentence that uses the conditional tense is:
"If the library is open, I will borrow a book."
This sentence indicates a future action that is conditional upon the library being open. The other options either misuse the conditional tense, refer to past events, or use incorrect verb forms for the conditions presented.