Text this: Mathematical modelling of the immune response to infectious diseases with the influence of environmental factors