As usual, there is a good reason why I asked.
Reason being, if you knew where the magnet was located, then again logic would assume if you placed the sensor right there , then it should work.
As Martaine says, it may be a polarity dependant reed sensor.