Action based on camera temperature

Is there a function to have the script/sequence stop imaging if the camera temperature warms beyond a set temp?

TIA

You could have a Cooling Down>If OK or If Error section in your Dragscript