Installing a basement drainage system is filthy ... section of pipe on the pump, then a check valve. Make sure the check valve doesn't interfere with the pump switch. Above the check valve ...