A smart device for preventing of the acute pulmonary pathologies in intensive care