I am not going to study your program. You need to write a program dealing ONLY with the Hall sensor. When you get that program to work with the sensor, you will be able to debug the original program.
Perhaps light a LED when you recognize the Hall sensor being on. OR Serial.println to the monitor, etc.
Paul