def interp(inputmV,mV_table, T_table):
    """

    :param inputmV: input value to interpolate
    :param mV_table: the two mV values in between the input mV value
    :param T_table: the two Temp values in between the input corresponding mV value
    :return: interpT : interpolated Temperature
    """
    T1, T2 = T_table
    low, high = mV_table

    interpT = T1 + (T2 - T1) * (inputmV - low) / (high - low)

    return interpT