Mathematical model of COVID-19 transmission in the presence of waning immunity