Algorithm for finding the moving direction of a vehicle using magnetic sensor | IEEE Conference Publication | IEEE Xplore