NRI G.13 - Drinks machine

What I've done to get the values:

I've used pulseIn to read the pulse the coin acceptor generates:

void setup() {
  // initialize serial communication at 9600 bits per second:
  Serial.begin(9600);
  pinMode(pin, INPUT);
}



void loop()
{
  duration = pulseIn(pin, HIGH);
   Serial.println(duration);
   delay(50);
}

It gives a long list of

9960
9899
9927
9932
9966
9892

And when I enter a euro (coin acceptor) it gives:

9928
10098
10124
9831