Control of sensor heater