How are gray and black waters managed (bathroom and kitchen water)?

Motorhomes have tanks that store the waste accumulated during the journey. In case one of the tanks gets full during the trip, we have a mobile tank that ensures a seamless experience.