#!/usr/bin/env python
# Made by Multipixelone
# Pump Controller
import RPi.GPIO as GPIO
# import schedule
from time import sleep

def PumpOn():
    GPIO.output(18, GPIO.HIGH)
    print("Pump On")
def PumpOff():
    GPIO.output(18, GPIO.LOW)
    print("Pump Off")
def Flood():
    PumpOn()
    sleep(5)  # Some Check of Water...?
    PumpOff()

#!/usr/bin/env python
# Made by Multipixelone
# Pump Controller
import RPi.GPIO as GPIO
# import schedule
from time import sleep
GPIO.setmode(GPIO.BCM)

def PumpOn():
    GPIO.output(18, GPIO.HIGH)
    print("Pump On")
def PumpOff():
    GPIO.output(18, GPIO.LOW)
    print("Pump Off")
def Flood():
    PumpOn()
    sleep(5)  # Some Check of Water...?
    PumpOff()

Set GPIO Mode