How to use pull up resistors to read two tacho signals individually?

I thought of letting you guys know, that I've found a solution to control my fans over TLS/SSL. Here's the post: