The oxygen sensor heaters are turned on by the ecu if the incoming sensor input slows down or goes wonky,
One some vehicles you will see a pid that says sensor temperature, it actually is the ecu measuring the amp pull of the heaters and showing a predetermined value,
Not all cars have all parameters though.