Thanks for correcting me.
I didn't use Arduino main broad because I just want to make a switch here.
Where the input of the circuit is the Hall effect sensor signal output.
When there's no magnetic field, the input of the circuit is about 2V, and ideally it should drop to milivolt when sensing a magnetic field,
but somehow the sensor becomes numb to the magnetic field in this circuit.