import csv


def read_elsys_file(fn):
    """Reads an Elsys CSV file and returns a list of dictionaries containing key 
    info for each sensor.
    """
    recs = []

    with open(fn, newline='') as csvfile:
        reader = csv.DictReader(csvfile, delimiter=';')
        for row in reader:
            recs.append(dict(
                model = row['SKU'],
                dev_eui = row['EUI'],
                app_eui = row['AppEUI'],
                app_key = row["AppKey"]
            ))
        
    return recs