implemented fake temperature measurement function