How does a sump pump work? How do they “know” when to start pumping?  And what are these bits of plumbing and pipes usually needed for, anyway?