Returns the IR temperature threshold in degrees Celcius, or 0 if no Threshold is set

def getIRThreshold(self):
    """Returns the IR temperature threshold in degrees Celcius, or 0 if no Threshold is set"""
    command = '$GO'
    threshold = self.sendCommand(command)
    if threshold[0] == 'NK':
      return 0
    else:
      return float(threshold[2])/10