A utility meter for measuring thermal energy delivered to a point of consumption by a fluid supplied via a supply flow and a return flow , including: - a flow meter unit for measuring a supply flow rate or return flow rate of the fluid; - a pair of temperature sensing probes for measuring temperatures of the supply flow and the return flow, each of the temperature sensing probes including a resistive temperature device; and - a calculator device configured for executing a measuring algorithm for determining an amount of thermal energy delivered to the point of consumption over a period of time based on flow rates and temperatures received from the flow meter unit and temperature sensing probes, respectively; characterized in that the calculator device is configured to detect the type of resistive temperature device included in the temperature sensing probes and to adapt the measuring algorithm according to the type of resistive temperature device and that the type of resistive temperature device included in the temperature sensing probes is detected using a sensor detection algorithm, the sensor detection algorithm including the steps of: - attempting to measure temperature using a measuring algorithm adapted to a first type of temperature sensing probes, such as temperature sensing probes including resistive temperature devices of the Pt-100 type, - attempting to measure temperature using a measuring algorithm adapted to a second type of temperature sensing probes, such as temperature sensing probes including resistive temperature devices of the Pt-500 type, and - determining which of the temperature measurements that are valid, and - if the measurements for both of the first type of temperature sensing probes or both of the second type of temperature sensing probes are considered valid and the measurements for the other type are considered invalid, then the sensor detection algorithm determines that the temperature sensing probes yielding the valid results are connected to the calculator device . - a flow meter unit for measuring a supply flow rate or return flow rate of the fluid; - a pair of temperature sensing probes for measuring temperatures of the supply flow and the return flow, each of the temperature sensing probes including a resistive temperature device; and - a calculator device configured for executing a measuring algorithm for determining an amount of thermal energy delivered to the point of consumption over a period of time based on flow rates and temperatures received from the flow meter unit and temperature sensing probes, respectively; - attempting to measure temperature using a measuring algorithm adapted to a first type of temperature sensing probes, such as temperature sensing probes including resistive temperature devices of the Pt-100 type, - attempting to measure temperature using a measuring algorithm adapted to a second type of temperature sensing probes, such as temperature sensing probes including resistive temperature devices of the Pt-500 type, and - determining which of the temperature measurements that are valid, and - if the measurements for both of the first type of temperature sensing probes or both of the second type of temperature sensing probes are considered valid and the measurements for the other type are considered invalid, <EOS>