Smart Trashbin metal detector with coin reward... need help

Fix those diagrams. They are at least misleading.

In one it looks like you connect 9 volts directly to an input.

In another, you have an open collector trying to drive a voltage divider. Or 9 volts going into the open collector. Bad news.

a7