Arduino and BV20 Bill Acceptor/Validator

Hi,
your hardware setup should be:

//                  o +5V
//                  |
//                  R = 2200 ohm               
//                  |
//   BV out o-------+-------o Arduino in
//

and I suggest you try to monitor the digital edges count:

volatile int gCount = 0;
unsigned long gMillisCounter;

void setup()
{
  Serial.begin(9600);
  attachInterrupt(0, pulseCounter, FALLING); // On digital pin 2
  gMillisCounter = millis();
}

void loop()
{
  // Print gCount every 3 seconds
  if( (signed long)( millis() - gMillisCounter ) >= 0)
  {    
    gMillisCounter += 3000;
    
    Serial.println(gCount);   
  }
}

void pulseCounter()
{
  gCount ++;
}