gets temperature and generates thermometer