The sentence that correctly uses the conditional tense is:
D. If the library is open, I will borrow a book.
This sentence uses the present simple tense "is" in the conditional clause and the future simple tense "will borrow" in the main clause, which is the correct structure for a first conditional statement.
The other options have incorrect tense usage for the conditions they present.