Combining two scematics

I'm with dc42. Do it all in software and minimize the circuit to a couple of wires and resistors, plus buzzer and LED for which there are heaps of examples.