The verse says that the Ark was to have three floors, and Rashi (based on Sanhedrin 108b) explains this as follows; "the bottom floor" was for waste, the "second" floor for the animals and the "third" floor for the humans.
Did the waste create a very unpleasant smell? Are there sources that explain this to be one of the miracles that were prevalent in the Teiva?