A sensor device for measuring a direction (α), along which light of a light source, particularly of the sun, impinges onto the sensor device, comprising: - at least a first and a second photosensitive element (P1, P2), wherein each photosensitive element (P1, P2) comprises a photosensitive surface (S1, S2) for detecting light (L) impinging on the respective photosensitive surface (S1, S2), and - a substrate for carrying said at least two photosensitive elements (P1, P2), wherein the substrate is configured to shade said photosensitive surfaces (S1, S2) depending on said direction, wherein the substrate is a planar substrate, and wherein the substrate is a printed circuit board, and wherein the substrate comprises a front side and a back side , which back side faces away from the front side , characterized in that the back side comprises a first edge and an opposing second edge , wherein the first photosensitive element (P1) is arranged on the first edge and wherein the second photosensitive element (P2) is arranged on the second edge , wherein the substrate comprises a recess (R), wherein the substrate forms a frame member surrounding said recess (R), wherein said frame member comprises a first leg , and an opposing second leg , wherein said first and second edge form edges of said recess (R) and face each other, wherein the first edge is formed by the first leg , and wherein the second edge is formed by the second leg , and wherein said photosensitive surfaces (S1, S2) extend parallel to the front side , wherein each photosensitive surface (S1, S2) points in the same direction as the front side , and wherein the first leg is configured to shade the photosensitive surface (S1) of the first photosensitive element (P1) depending on said direction, and/or wherein the second leg is configured to shade the photosensitive surface (S2) of the second photosensitive element (P2) depending on said direction. - at least a first and a second photosensitive element (P1, P2), wherein each photosensitive element (P1, P2) comprises a photosensitive surface (S1, S2) for detecting light (L) impinging on the respective photosensitive surface (S1, S2), and - a substrate for carrying said at least two photosensitive elements (P1, P2), wherein the substrate is configured to shade said photosensitive surfaces (S1, S2) depending on said direction, wherein the substrate is a planar substrate, and wherein the substrate is a printed circuit board, and wherein the substrate comprises a front side and a back side , which back side faces away from the front side , characterized in that the back side comprises a first edge and an opposing second edge , wherein the first photosensitive element (P1) is arranged on the first edge and wherein the second photosensitive element (P2) is arranged on the second edge , wherein the substrate comprises a recess (R), wherein the substrate forms a frame member surrounding said recess (R), wherein said frame member comprises a first leg , and an opposing second leg , wherein said first and second edge form edges of said recess (R) and face each other, wherein the first edge is formed by the first leg , and wherein the second edge is formed by the second leg , and wherein said photosensitive surfaces (S1, S2) extend parallel to the front side , wherein each photosensitive surface (S1, S2) points in the same direction as the front side , and wherein the first leg is configured to shade the photosensitive surface (S1) of the first photosensitive element (P1) depending on said direction, and/or wherein the second leg is configured to shade the photosensitive surface (S2) of the second photosensitive element (P2) depending on said direction. <EOS>