An assembly for measuring the temperature of a fluid for hyperthermic treatment of a body cavity includes a tubular structure having a tubular wall and an opening; a temperature sensing element having a temperature sensor; a sensor cap having a cap inner surface and a cap outer surface encapsulating the temperature sensor in direct contact with the cap inner surface, and connected to the tubular wall such that the encapsulated temperature sensor is positioned in the tubular structure through the opening; and a connector such that the sensor cap and the tubular wall are connected in a releasable manner by means of the connector.