Method and device (1b) for performing the optical analysis of particles (2) contained in suspension in a fluid (3) arranged inside a microfluidic device (4) which maintains it at a temperature significantly lower than the ambient temperature; the formation of humidity on the outer surface (8) of the cover of the microfluidic device is avoided by applying a thermal flow (F) which determines an increase in the temperature of the outer surface (8) of the cover to above the condensation temperature (Td), or a reduction in the ambient temperature (and/or humidity) in the vicinity of the cover (8), so as to bring the condensation temperature (Td) (dew point) to below the temperature of the surface (8) of the cover determined by the internal operating temperature.