Ventilators are essential medical devices used in healthcare settings to assist or take over the…