The sentence that correctly uses the conditional tense is:
If the library is open, I will borrow a book.
This sentence expresses a future possibility based on a condition. The other sentences either mix tenses incorrectly or use the wrong forms for conditional statements.