Sensor casing comprising a head part with a sensor space for reception of a sensor and a connecting part, which adjoins the head part, with a terminal space for reception of a terminal connecting block, wherein - the head part has in a back wall adjoining the connecting part a passage opening for cable and plug guidance into the sensor space, - the connecting part comprises a terminal space lower part and a terminal space cover, - the terminal space lower part and the terminal space cover are placed together in a closing direction so that - the terminal space lower part and the terminal space cover part enclose the terminal space, - the terminal space over or the terminal space lower part is connected by way of connecting means with the head part and has a side wall, which adjoins the back wall of the head part, with a passage opening, which at least overlaps the passage opening of the head part, for the cable and/or plug guidance from the sensor space into the terminal space, - the terminal space lower part or the terminal space cover has a side wall with an entry opening for the cable and/or plug guidance, wherein - the terminal space lower part comprises at least one first connecting part (24.1) of a plug connection interengaging in a locking direction, characterised in that - the terminal space cover comprises an inner part with a guide and a cover part with at least one second connecting part (24.2) of the plug connection interengaging in the locking direction, - the cover part is configured to be displaceable relative to the inner part along the guide in the locking direction between a starting position and an end position, - the cover part partly covers the inner part at least in the end position and - when the terminal space cover is placed on the terminal space lower part the first connecting part (24.1) and the second connecting part (24.2) of the plug connection engage one in the other in the end position of the cover part and are spaced from one another in the starting position of the cover part. - the head part has in a back wall adjoining the connecting part a passage opening for cable and plug guidance into the sensor space, - the connecting part comprises a terminal space lower part and a terminal space cover, - the terminal space lower part and the terminal space cover are placed together in a closing direction so that - the terminal space lower part and the terminal space cover part enclose the terminal space, - the terminal space over or the terminal space lower part is connected by way of connecting means with the head part and has a side wall, which adjoins the back wall of the head part, with a passage opening, which at least overlaps the passage opening of the head part, for the cable and/or plug guidance from the sensor space into the terminal space, - the terminal space lower part or the terminal space cover has a side wall with an entry opening for the cable and/or plug guidance, wherein - the terminal space lower part comprises at least one first connecting part (24.1) of a plug connection interengaging in a locking direction, - the terminal space cover comprises an inner part with a guide and a cover part with at least one second connecting part (24.2) of the plug connection interengaging in the locking direction, - the cover part is configured to be displaceable relative to the inner part along the guide in the locking direction between a starting position and an end position, - the cover part partly covers the inner part at least in the end position and - when the terminal space cover is placed on the terminal space lower part the first connecting part (24.1) and the second connecting part (24.2) of the plug connection engage one in the other in the end position of the cover part and are spaced from one another in the starting position of the cover part.