updated get-temperature; added Unit parameter and Unit conversion using helper functions