Measuring Distance Using Vehicle ABS Sensor

So my project that I am working on is to Measure distance travel by footage in my vehicle using the ABS sensor. This sensor send out 5v every time the magnet passes it. In other words its a Hall effect sensor. I have found the ABS sensor sends out a low volts to a high volts of 5v every time a magnet passes it. I was wounding if there is away to read that high 5v and count it as one and every time it reads the 5v it counts up so I can use it to measure footage traveled. So far I got it to read the voltage but it doesn’t stop counting. Not sure if its reading all voltage or what plus if I stop the car with the magnet on the sensor it just keeps counting…Maybe I am doing my code wrong or something so I hopping you guys can take the time and help me out. Thanks

Below is the code that I have come up with…

#include <RBD_Timer.h>
#include <RBD_Button.h>
#include <LiquidCrystal_I2C.h>
#include <Wire.h>

RBD::Button reedSwitch(2); // input_pullup by default
RBD::Button resetSwitch(3); // input_pullup by default

LiquidCrystal_I2C lcd(0x3f,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display

// constants won’t change. They’re used here to set pin numbers:
const int hallPin = 12; // the number of the hall effect sensor pin
// variables will change:
int hallState = 0; // variable for reading the hall sensor status
int count= 0;
int distance = 0;
float callibration = 400.00/0;

void setup() {
// initialize the hall effect sensor pin as an input:
pinMode(hallPin, INPUT);
lcd.init(); // initialize the lcd
lcd.init();
lcd.backlight();
lcd.setCursor(5,5); //set cursor to top left corner
lcd.print(“HELLO”); //print the text to the lcd
delay (3000);

lcd.clear();
lcd.setCursor(7,7);
lcd.print(count = 0);
lcd.setCursor (7,0);
lcd.print(distance = 0);
lcd.setCursor(14,0);
lcd.print(“FT”);
lcd.setCursor(14,14);
lcd.print(“CT”);

}

void loop() { // read the state of the hall effect sensor:
hallState = digitalRead(hallPin);

if (hallState ==HIGH) {
lcd.setCursor(7,7);
count++;
distance = float(count)*callibration;
lcd.print(count);
lcd.setCursor (7,0);
lcd.print(distance);
lcd.setCursor(14,14);
lcd.print(“CT”);

}

if(resetSwitch.onPressed()) {
count = 0;
lcd.clear();
lcd.setCursor(7,7);
lcd.print(count = 0);
lcd.setCursor (7,0);
lcd.print(distance = 0);
lcd.setCursor(14,0);
lcd.print(“FT!”);
lcd.setCursor(14,14);
lcd.print(“CT”);

}

}

So apparently I was of been getting the wrong volts for the ABS sensor. Its only a two wire sensor on my are and one wire is input of 12v and the other one is reading .46 volts when I turn the wheel slowly I can see it more to .48 then down again. Can I use this sensor to measure footage or do I need to look for a different sensor maybe the VSS Vehicle speed sensor. I am just trying to make this as easy as possible. Any help would be appreciated. Thanks