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

I have 1kOHM, 4.7 kOHM and 10kOHM resistors. The 10kOHM is pictured in the schematic. It seems to have no effect. I’ve tried the other resistors and they all behave the same: no effect.

In other places online I’ve seen that they’ve used resistors for hall effect sensors so I’m pretty sure that is the solution here. Maybe the error is in my code or with my wiring set up?