This circuit is an improvement of the previous circuit. An input resistor must be included depending on the strength of the signals.