def _get_humidity_from_buffer(data):
    """This function reads the first two bytes of data and returns
    the relative humidity in percent by using the following function:
    RH = -6 + (125 * (SRH / 2 ^16))
    where SRH is the value read from the sensor
    """
    unadjusted = -6.0 + 125.0 * ((data[0] << 8) + (data[1] & 0xfc)) / (1 << 16)
    return unadjusted