Using a Hall Effect sensor with an LCD screen (solved)

I also put a 10kOHM resistor between pins 1 and 3 on the Hall effect sensor in-case anyone else is facing a similar problem as me.