i am using a RPI3 with a rain gauge.
If there is enough water in it, it will go from High to Low.
If i test it by tipping the rain gauge it works perfectly, but sometimes it calls the interrupt routine by mistake.
Code: Select all
GPIO.setmode(GPIO.BCM)
GPIO.setup(8, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.add_event_detect(8, GPIO.FALLING, callback=InterruptRoutine, bouncetime=200)Any idea?