The KY-035 analog magnetic hall sensor is a module that reacts in the presence of a magnet. It can measure the polarity and relative strength of a magnetic field.
When no magnetic field is detected, the output signal is roughly half of the applied input voltage. When a magnetic field is detected, the output signal goes up or down depending on the polarity and proximity of the magnet.