Measuring of temperature and pressure in injection mold