Configured the method get averagePos to :

1:  take the average to make first threshold
2:  remove tempes below the first threshold

3:  in order to get better results, take the average of what is left
4:  remove temps beloe this new threshold average