Hi Simon, thanks for posting your code, but I still had a lot of false measurements with it on my Pi 3B. So, I modified it a bit and now have only a few rather rare false measurements left. Here is my improved code: import RPi.GPIO as GPIO # Import the GPIO module as 'GPIO' import time GPIO.setmode ...