Hall sensor comprising at least four sensor terminals (EXT_A, EXT_B, EXT_C, EXT_D) for connecting the Hall sensor and a plurality of Hall sensing elements (11, 12,..., 88) having element terminals (A, B, C, D), wherein - the Hall sensing elements (11, 12,..., 88) are interconnected with the element terminals (A, B, C, D) according to a logical connection grid in between the sensor terminals (EXT_A, EXT_B, EXT_C, EXT_D), each Hall sensing element having a respective logical connection grid position in the connection grid, each Hall sensing element being directly connected with at least two logically adjacent Hall sensing elements in the connection grid; - the Hall sensing elements (11, 12,..., 88) are physically arranged according to a physical arrangement grid, each Hall sensing element having a respective physical arrangement grid position in the arrangement grid, the arrangement grid being different from the connection grid; - the connection grid and the arrangement grid each are structured grids having a first and a second dimension and each comprise gridlines along each of the first and the second dimension; - the arrangement grid positions of each of the Hall sensing elements (11, 12,..., 88) are identified by a respective unique index for each of the first and the second dimension within the arrangement grid, and the connection grid positions of each of the Hall sensing elements (11, 12,..., 88) are identified by a respective unique index for each of the first and the second dimension within the connection grid; - the Hall sensing elements (11, 12,..., 88) of at least one gridline of the first dimension of the arrangement grid are connected to Hall sensing elements (11, 12,..., 88) of a gridline of the first dimension of the connection grid, that are not physically arranged adjacently to the Hall sensing elements of the at least one gridline of the first dimension of the arrangement grid; and - the Hall sensing elements (11, 12,..., 88) of at least one gridline of the second dimension of the arrangement grid are connected to Hall sensing elements (11, 12,..., 88) of a gridline of the second dimension of the connection grid, that are not physically arranged adjacently to the Hall sensing elements of the at least one gridline of the second dimension of the arrangement grid. - the Hall sensing elements (11, 12,..., 88) are interconnected with the element terminals (A, B, C, D) according to a logical connection grid in between the sensor terminals (EXT_A, EXT_B, EXT_C, EXT_D), each Hall sensing element having a respective logical connection grid position in the connection grid, each Hall sensing element being directly connected with at least two logically adjacent Hall sensing elements in the connection grid; - the Hall sensing elements (11, 12,..., 88) are physically arranged according to a physical arrangement grid, each Hall sensing element having a respective physical arrangement grid position in the arrangement grid, the arrangement grid being different from the connection grid; - the connection grid and the arrangement grid each are structured grids having a first and a second dimension and each comprise gridlines along each of the first and the second dimension; - the arrangement grid positions of each of the Hall sensing elements (11, 12,..., 88) are identified by a respective unique index for each of the first and the second dimension within the arrangement grid, and the connection grid positions of each of the Hall sensing elements (11, 12,..., 88) are identified by a respective unique index for each of the first and the second dimension within the connection grid; - the Hall sensing elements (11, 12,..., 88) of at least one gridline of the first dimension of the arrangement grid are connected to Hall sensing elements (11, 12,..., 88) of a gridline of the first dimension of the connection grid, that are not physically arranged adjacently to the Hall sensing elements of the at least one gridline of the first dimension of the arrangement grid; and - the Hall sensing elements (11, 12,..., 88) of at least one gridline of the second dimension of the arrangement grid are connected to Hall sensing elements (11, 12,..., 88) of a gridline of the second dimension of the connection grid, that are not physically arranged adjacently to the Hall sensing elements of the at least one gridline of the second dimension of the arrangement grid.