Working principles of float valve