Problema ao calibrar o sensor de vazao

Então pessoa estou com o seguinte problema, estou elaborando um projeto com sensor de fluxo mas estou com dificuldade pra calibrar ele. A programação que estou usando é a que vem no propio datasheet do sensor, mas quando faço o teste de quantidade de agua ele sempre da um valor diferente do que eu coloquei
a programação que estou usando é a seguinte:

volatile int NbTopsFan; //measuring the rising edges of the signal
int Calc;
int
int hallsensor = 2; //The pin location of the sensor
void rpm () //This is the function that the interupt calls
{
NbTopsFan++; //This function measures the rising and falling edge of the
//hall effect sensors signal
}
// The setup() method runs once, when the sketch starts
void setup() //
{
pinMode(hallsensor, INPUT); //initializes digital pin 2 as an input
Serial.begin(9600); //This is the setup function where the serial port is
//initialised,
attachInterrupt(0, rpm, RISING); //and the interrupt is attached
}
// the loop() method runs over and over again,
// as long as the Arduino has power
void loop ()
{
NbTopsFan = 0; //Set NbTops to 0 ready for calculations
sei(); //Enables interrupts
delay (1000); //Wait 1 second
cli(); //Disable interrupts
Calc = (NbTopsFan/ 5.5); //(Pulse frequency) / 5.5Q, = flow rate
//in L/hour
Serial.print (Calc, DEC); //Prints the number calculated above
Serial.print (" L/Min\r\n"); //Prints “L/hour” and returns a new line
Serial.print (" Ltotal\r\n"); //Prints “L/hour” and returns a new line
Serial.print (Calc / 1000);
}

According to the structure of the flow sensor, it can be divided into blade (wing plate) type, measuring core type, hot wire type, hot film type, Karman vortex type, etc.
According to its standard nature, it can be classified into the following categories. Method standards: calculation methods, detection methods, test methods, and performance evaluation methods for some sensors; product standards: This type of sensor has been included in the fast-easy excellent, which stipulates the technical requirements, acceptance rules, test methods and In addition to product classification, there are requirements for correct installation and use, etc. Some standards only have correct installation and use technology. These are the nature of product application in product standards.
If divided according to the standard level, it can be divided into four categories: corporate standards, local standards, industry standards and national standards.

  1. Classified by input: displacement sensor, speed sensor, temperature sensor, pressure sensor, etc.
  2. Classified by working principle: strain type, capacitive type, inductive type, piezoelectric type, thermoelectric type, etc.
  3. Classified by physical phenomenon: structural sensor, characteristic sensor
  4. Classified by energy relationship: energy conversion sensor, energy control sensor
  5. According to the output signal classification: analog sensor, digital sensor