Temperature measurement using electric or magnetic components already present in the system to be measured