'Get the latest data from Sense HAT.'

@Throttle(MIN_TIME_BETWEEN_UPDATES)
def update(self):

    from sense_hat import SenseHat
    sense = SenseHat()
    temp_from_h = sense.get_temperature_from_humidity()
    temp_from_p = sense.get_temperature_from_pressure()
    t_total = ((temp_from_h + temp_from_p) / 2)
    if self.is_hat_attached:
        t_cpu = get_cpu_temp()
        t_correct = (t_total - ((t_cpu - t_total) / 1.5))
        t_correct = get_average(t_correct)
    else:
        t_correct = get_average(t_total)
    self.temperature = t_correct
    self.humidity = sense.get_humidity()
    self.pressure = sense.get_pressure()
