A system for handling a fluid includes a container for separating the fluid into a liquid and a vapor such that at least a portion of the vapor is disposed above the liquid. The system also includes at least one valve for releasing the vapor from the container, at least one sensor to detect a level of the liquid in the container, and a controller in communicatively coupled to the at least one valve and the at least one sensor. The controller is configured to control the at least one valve to release the vapor such that the liquid level is maintained at or above a desired liquid level. The controller is configured to determine diagnostic data based at least in part on signals received from the least one valve and the at least one sensor.