How does a backwater valve work?

If your municipal sewer system encounters problems waste water and sewage could back flow into your home. A backwater valve has a flap that lays on the bottom of the backwater device. As waste water flows towards your home it raises the flap, stopping the waste water from enter your home.

Girl pondering plumbing problems