Detecting the presence of frost or condensate