Detect faulty sensor

Hello,
I have a temperature sensor that output 32768 value when it’s faulty.
There are a standard way to catch and report the error?