This study examines the use of cellular automata (CA) to simulate the spread of influenza. Despite the lack of specific data for Panama, the results showed that CA can provide an accurate and detailed representation of disease spread dynamics in the environment. A reasonable correspondence with continuous models was observed, underlining their potential for predicting and controlling epidemics, which result in increased use of healthcare services and, consequently, higher energy consumption leading to the emission of more environmental pollutants. The study also emphasized the need for accurate and up-to-date epidemiological data, as they are crucial for the effectiveness of the models. This research highlights the value of CA in disease modeling and the importance of robust data for the development of effective public health policies.