def cal_mean(readings):
    """Function to calculate the mean value of the input readings"""
    readings_total = sum(readings)
    number_of_readings = len(readings)
    mean = readings_total / float(number_of_readings)
    return mean