diff --git a/main.py b/main.py index ffb619a..c73dfab 100644 --- a/main.py +++ b/main.py @@ -44,8 +44,8 @@ def relay_controller(pin: int, status: str): def get_water_level(): GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) - GPIO_TRIGGER = 18 - GPIO_ECHO = 24 + GPIO_TRIGGER = 24 + GPIO_ECHO = 8 GPIO.setup(GPIO_TRIGGER, GPIO.OUT) GPIO.setup(GPIO_ECHO, GPIO.IN) GPIO.output(GPIO_TRIGGER, True)