A ventilator is a device that provides cool air by moving the air in or out of the lungs, inhaling a patient who is not fit to smell, or breathing properly. In this paper, a resistive chest belt sensor-based mechanical ventilator is designed to provide the COVID-19 patient with the volume of air you need to deliver with the expansion of the patient's chest in need of more air. The resistive band sensor senses the expansion of the patient's chest and controls the solenoid valve attached to the oxygen compressor. The function of the respirator is tested with the MATLAB / Simulink tool with the help of a Proportional Integral Derivative (PID) Controller and a promising result obtained.