modified get to retrieve current temperature