Using Hall Sensor(TLE-4905) with Arduino Mega

Okay it works now. The hall sensor wasn't receiving power from the arduino (I had to power it with battery). Thanks alot for the help :))))