Here is a tristate logic probe I made several years ago.
You can use it as is or as a building block for a new circuit.