def METHOD_NAME(self):
    """Gets the DS18B20's temperature in Celsius."""
    if not self.sensor:
        self.logger.error("Error 101: Device not set up. See https://kizniche.github.io/Mycodo/Error-Codes#error-101 for more info.")
        return
    self.return_dict = copy.deepcopy(measurements_dict)
    temperature = None
    n = 2
    for i in range(n):
        try:
            temperature = self.sensor.get_temperature()
        except Exception as e:
            if i == n:
                self.logger.exception(
                    "{cls} raised an exception when taking a reading: {err}".format(cls=type(self).__name__, err=e))
                return None
            time.sleep(1)
    if temperature == 85:
        self.logger.error("Measurement returned 85 C, indicating an issue communicating with the sensor.")
        return None
    elif temperature is not None and not -55 < temperature < 125:
        self.logger.error(
            "Measurement outside the expected range of -55 C to 125 C: {temp} C".format(temp=temperature))
        return None
    elif temperature is not None:
        self.value_set(0, temperature + self.temperature_offset)
    return self.return_dict