To check if the float switch is causing the short cycling, manually lift the float switch while the pump is running. If the pump continues to run and doesn't turn off, it is likely that the float switch needs to be replaced.