Your output would seem to imply that there is some problem with your averaging algorithm since the printed average is obviously on the average of the two printed sensor values. However this is misleading since you are not printing the inputs to the averaging algorithm, you are printing the results from a previous sensor reading and then average subsequent sensor readings. Try printing the inputs to the average and see what you get. My guess is that you have glitches in your sensor readings.