My sump pump runs constantly, do I need to buy a new one?

It could just be a bad switch that is easy to replace.