Created new method to compare temperature and pressure