Car heats up only when ac is working

The thermostat may be stuck open and that’s why the engine doesn’t heat up.

But when you use the AC, the heat that comes off the condenser in front of the radiator starts heating up the coolant.

Tester