'Return the state of the sensor.'

@property
def state(self):

    sensor_unit = self.unit_of_measurement
    if ((sensor_unit == TEMP_CELSIUS) or (sensor_unit == '%')):
        if (self._state is None):
            self._state = 0
        return round(self._state, 2)
    else:
        return self._state
