the coins are detected by a simple optical interrupter circuit, with the led and phototransistor on opposite sides of the coin slot. A hex inverter is used to clean up the signal and invert it so that when a coin is present a logic level hi is delivered to the c32.