diff --git a/main.py b/main.py index eb2c71b..a6c3ff1 100644 --- a/main.py +++ b/main.py @@ -42,7 +42,7 @@ def relay_controller(pin: int, status: str): #ultrasonic def get_water_level(): - GPIO.setmode(GPIO.BOARD) + GPIO.setmode(GPIO.BMC) GPIO.setwarnings(False) GPIO_TRIGGER = 18 GPIO_ECHO = 24