Hall sensor and sensing method, and corresponding device