Creating a program that takes multiple readings from a sensor and averaging them

you need to test the code and understand what's going before using final values