Digital filter selection for sensor
It depends a lot on the kind of noise and how fast you need the sensor to track the true temperature, and how fast you need to read the temp.

If you expect large outliers, a median filter is robust to those kinds of perturbations and they can have a relatively short effective window, and a corresponding fast response.

Following the median filter with a conventional low pass is used in some applications.

As was pointed out in the comments, the better you can define your requirements, the better you can make your measurements.

The nice thing about using a median,it is a rank statistic that it is core to nonparametric statistics, where fewer assumptions are made by the underlying probability distribution and there is a large literature on how to design hypothesis tests.