n = number of gas particles T = temperature (speed of particles) V = volume of container P, the pressure inside the container, is directly proportional to n and T, and inversely proportional to V.
In actual physics, the ideal gas law is expressed as PV = nRT, R being a constant. In this project, P is isolated, making the equation P = (nRT)/V. Just like in the ideal gas law, P is determined by the gas particles making contact with the inner surface of the container. In the project, P refreshes every two seconds.