The sentence that correctly uses the conditional tense is:
If the library is open, I will borrow a book.
This is a standard first conditional sentence, which describes a possible future event based on a real condition. The other options either use incorrect verb forms or confusing mixes of tenses.