Read TTL Signal and print it to Serial?

from an old settopbox.