Understanding "פסיק רישא דלא ניחא ליה" (inevitable results from one's permissible action whereby one receives no benefit from).
the use of a thermometer on Shabbos;
the type of action being done;