39    Retrieve the weight of the scale. 
   40    This function sends a GET request to the specified API endpoint 
   41    to retrieve the weight of the scale. 
   43        float: The weight of the scale. 
   45    api = f
"http://{SCALE_HOST}/getWeight" 
   47        response = requests.get(api, timeout=10)
 
   48        response.raise_for_status()
 
   49    except requests.RequestException 
as e:
 
   50        logger.error(f
"Error retrieving weight: {e}")
 
   51        return "ERROR SCALE NOT FOUND" 
   52    weight = response.content.decode(
"utf-8")