get temperature and current frequency