COIN ACCEPTOR PULSE READING

Hello Friends , I just want to seek for advice and suggestions here. I got a problem in reading the pulse from my coin acceptor. I dont know if I have wrong diagram or code. My friend told me not to use Interrupt, Instead use the sample button code in Arduino IDE example just to get the pulse. Any comment, suggestion or advice please.....THANKS IN ADVANCE :slight_smile:

It may have been the state change detection example that your friend meant.