def find_gap(l, value):
    """
    try to find a address gap in the list of modbus registers
    """
    for index in range(len(l)):
        if l[index] == value:
            return None
        if l[index] > value:
            return index
