Here is some info if you want to check the circuit vs a bad sensor.
A B1479 Flow Control Circuit code indicates either a short or open in the flow control sensor circuit.
To eliminate the possibility of an open to the sensor, disconnect the electrical connector and check for 5 volts.
The flow control sensor receives 5V DC from the AC amplifier.
It then monitors the change in that voltage to determine flow rate.
If you detect 5V from the AC amplifier, turn on the AC and check for return voltage.
It must be above 0.3V and less than 4.7V and should vary.
If it reads below 0.3V or higher than 4.7V (gor more than 5-secs), replace the sensor.
If sensor bad then can be replaced.
Rockauto.com has UAC EX10477C Compressor Control Valve it may be the one.
How to fix a B1479 and AC compressor clutch won’t engage
Unfortunately, Toyota doesn’t seem to sell just the sensor and recommends replacing the entire compressor.

However, some sources in China (Alibaba) do sell the sensor. Keep in mind that you’ll have to discharge the refrigerant to replace the sensor. Then you’ll have to pull a vacuum and recharge.