Temperature Failsafe and compass Failsafe

Is it possible to use an external sensor for the ArduCopter ambient temperature failsafe, and also trigger an RTL (Return to Launch) if one of the two external compasses fails?