Thankyou forr the answer !
FYI, in my case, it the output of the hall effect sensor need to be pulled up using resistor and 5v. It didnt give the square wave like yours. it will only give squeare wave signal once it get pulled up by 5V and resistor.
Thankyou so much for your time!