A smart ventilation is portable, costeffective, IoT-enabled and powered by lithium ion batteries. It operates in both invasive and non-invasive, with a smartphone app to control the device. The system displays real-time information of the breath pattern and other critical lung parameters.