An optoelectronic sensor (110 - 410) for detecting objects in accordance with the triangulation principle, said optoelectronic sensor (110 - 410) comprising a transmission arrangement for transmitting transmission light signals along a transmission axis (S, S1 - S4, S A - S C), wherein the transmission arrangement comprises at least one light source (10, 10.1 - 10.4, LQ) and a transmission optics (12, L, L A - L C) which is configured for focusing the transmission light signals generated by the at least one light source (10, 10.1 - 10.4, LQ) at a focus point (FP, FP1 - FP4), and a reception arrangement which has a reception axis (E, E', E1, E2) and which comprises a reception optics for forming reception light signals, which are generated by an object by a remission of incident transmission light signals, and a spatially resolving light receiver (20, LE) for receiving the formed reception light signals, wherein a relative position of an exit location of the transmission light signals from the at least one light source (10, 10.1 - 10.4, LQ) relative to the transmission optics (12, L, L A - L C) can be selected such that the focus width, which corresponds to the distance of a focus point (FP, FP1 - FP4) from the transmission optics (12, L, L A - L C), can be set to a desired value, wherein the different relative positions are located on a positioning curve which is selected such that respective focus points (FP, FP1 - FP4) associated with the positioning curve lie on a focus point line (FL1, FL2) for different focus widths, wherein the focus point line (FL1, FL2) has a distance from the reception axis (E, E', E1, E2) that is minimized at least within a predefined working distance range such that the focus point line (FL1, FL2) coincides with the reception axis (E, E', E1, E2) or at least a certain predefined maximum distance between the focus point line (FL1, FL2) and the reception axis (E, E', E1, E2) is not exceeded, characterized in that the light source (10, 10.1 - 10.4, LQ) and the light receiver (20, LE) are arranged spaced apart from one another in a triangulation direction on a common carrier module which is a circuit board or an electronic card. a transmission arrangement for transmitting transmission light signals along a transmission axis (S, S1 - S4, S A - S C), wherein the transmission arrangement comprises at least one light source (10, 10.1 - 10.4, LQ) and a transmission optics (12, L, L A - L C) which is configured for focusing the transmission light signals generated by the at least one light source (10, 10.1 - 10.4, LQ) at a focus point (FP, FP1 - FP4), and a reception arrangement which has a reception axis (E, E', E1, E2) and which comprises a reception optics for forming reception light signals, which are generated by an object by a remission of incident transmission light signals, and a spatially resolving light receiver (20, LE) for receiving the formed reception light signals, wherein a relative position of an exit location of the transmission light signals from the at least one light source (10, 10.1 - 10.4, LQ) relative to the transmission optics (12, L, L A - L C) can be selected such that the focus width, which corresponds to the distance of a focus point (FP, FP1 - FP4) from the transmission optics (12, L, L A - L C), can be set to a desired value, wherein the different relative positions are located on a positioning curve which is selected such that respective focus points (FP, FP1 - FP4) associated with the positioning curve lie on a focus point line (FL1, FL2) for different focus widths, wherein the focus point line (FL1, FL2) has a distance from the reception axis (E, E', E1, E2) that is minimized at least within a predefined working distance range such that the focus point line (FL1, FL2) coincides with the reception axis (E, E', E1, E2) or at least a certain predefined maximum distance between the focus point line (FL1, FL2) and the reception axis (E, E', E1, E2) is not exceeded, characterized in that the light source (10, 10.1 - 10.4, LQ) and the light receiver (20, LE) are arranged spaced apart from one another in a triangulation direction on a common carrier module which is a circuit board or an electronic card.