An arrangement having a pin-shaped contact element and a temperature measuring device for measuring a temperature of the pin-shaped electrical contact element , the temperature measuring device comprising a flexible printed circuit board having a first thermally conductive and electrically insulating substrate layer with a contact surface which is arranged to rest flat against a flange of the pin-shaped electrical contact element , and an opening arranged in the contact surface , wherein the pin-shaped contact element is arranged at least partially in the opening ; and a second thermally and electrically conductive layer , which is arranged on a sensor surface of the first substrate layer opposite the contact surface and has a sensor element which is connected to the sensor surface and is set up to detect a temperature of the pin-shaped electrical contact element , the contact surface of the flexible printed circuit board resting flat against the flange of the pin-shaped electrical contact element , characterized in that the arrangement includes a housing with a first housing part and a second housing part , wherein the flange of the pin-shaped electrical contact element bears against the first housing part and wherein the second housing part exerts a force on the flexible printed circuit board in the direction of the first housing part and thus presses the contact surface of the flexible printed circuit board against the flange of the pin-shaped electrical contact element , wherein an elastic contact pressure element is arranged between the flexible printed circuit board and the second housing part and wherein the pressure is exerted on the flexible printed circuit board via the elastic contact pressure element , wherein a further elastic contact pressure element is arranged between the flange of the pin-shaped electrical contact element and the first housing part . a first thermally conductive and electrically insulating substrate layer with a contact surface which is arranged to rest flat against a flange of the pin-shaped electrical contact element , and an opening arranged in the contact surface , wherein the pin-shaped contact element is arranged at least partially in the opening ; and a second thermally and electrically conductive layer , which is arranged on a sensor surface of the first substrate layer opposite the contact surface and has a sensor element which is connected to the sensor surface and is set up to detect a temperature of the pin-shaped electrical contact element , the contact surface of the flexible printed circuit board resting flat against the flange of the pin-shaped electrical contact element , characterized in that the arrangement includes a housing with a first housing part and a second housing part , wherein the flange of the pin-shaped electrical contact element bears against the first housing part and wherein the second housing part exerts a force on the flexible printed circuit board in the direction of the first housing part and thus presses the contact surface of the flexible printed circuit board against the flange of the pin-shaped electrical contact element , wherein an elastic contact pressure element is arranged between the flexible printed circuit board and the second housing part and wherein the pressure is exerted on the flexible printed circuit board via the elastic contact pressure element , wherein a further elastic contact pressure element is arranged between the flange of the pin-shaped electrical contact element and the first housing part . <EOS>