A diagnostic device is disclosed for characterisation of particles from a patient's airways, such as a lung, when ventilated by a ventilator, and/or for control thereof, comprising a particle detecting unit configured to be connected to a conduit for passing expiration fluid from said patient, for obtaining data related to particles being exhaled from said patient's airways.