Latent heat cannot be used to extract energy, it is the change in the Gibbs free energy that you can convert to useful work. This is easy to understand intuitively, if you have a liquid in equilibrium with its vapor, then the Gibbs energy change due to an amount of the substance changing phase is zero, therefore you cannot extract any useful energy from this process no matter how much latent heat is released in this process.
This also means that you can extract work from a process that requires a lot of heat as long as the Gibbs energy drops and hence it's a spontaneous process. E.g., despite the fact that it costs a lot of energy to evaporate water, you can still extract a lot of energy from this process, simply because its a spontaneous process. So, let's calculate how much energy you can extract from 1 liter of water at room temperature at some relative humidity of r.
The 1 liter of water would be in thermal equilibrium had the humidity been 100%, therefore the Gibbs energy of the water is the same as that of water vapor at the partial pressure corresponding to 100% humidity. The drop in the Gibbs energy when all the water evaporates at the humidity of r is thus the same as the difference between the Gibbs energy of water vapor at a partial pressure corresponding to 100% humidity and at r. Now water vapor is to a good approximation an ideal gas, this allows us to calculate the Gibbs energy difference quite accurately.
From the fundamental thermodynamic relation:
$$dE = TdS - P dV$$
It follows that the differential of $G\equiv E - T S + P V$ is given by:
$$dG = -SdT + V dP$$
If we have an ideal gas at temperature T and pressure $P_1$ and we change the pressure to $P_2$ while keeping the temperature the same, then it follows the above equation that:
$$G(T,P_2)-G(T,P_1) =NKT\int_{P_1}^{P_2}\frac{dP}{P} = NkT\log\left(\frac{P_2}{P_1}\right)$$
The ratio of the pressures $\frac{P_2}{P_1}$ is the relative humidity $r$ when we take $P_1$ to be the partial pressure of water vapor at 100% humidity and $P_2$ the partial pressure at a fraction r of this. So, the maximum amount of work, which is given by the drop in the Gibbs energy, is given by:
$$W = -NkT\log(r)$$
For 1 liter of water at room temperature and $r = 0.6$ this is about 70.3 kJ which is about 1.65 times the amount of energy in my fully charged camera battery.