Integrating Smart Control Systems with Waterproof Infrared Heaters for Livestock Environments