I think a good test would be to run this python code on the Pi while monitoring the Cayenne widget as well. All it does is loop and check to see what value it’s getting from the Motion Sensor and print it to the console. Just save it to a file named something like
pirtest.py and run with
import RPi.GPIO as GPIO
GPIO.setup(11, GPIO.IN) #Read output from PIR motion sensor
if i==0: #When output from motion sensor is LOW
print "No intruders",i
elif i==1: #When output from motion sensor is HIGH
print "Intruder detected",i
In my case, the motion sensor widget in Cayenne and the console output match up exactly. If they do for you, then I imagine Cayenne is just happily reporting what it is getting from the device, even if that is all 1’s. In that case I’d be more suspect of the sensor itself or its wiring. If they differ, it could be something on our end.
Speaking of wiring, you mentioned you had a resistor in place, but do you know what resistor type you’re using? In my case, and the tutorial image, it’s a 100 ohm resistor (brown/black/brown/gold). I’ll admit I’m not as good with electrical stuff as I am with software to know if a different resistor here would make a difference, but just so we can compare setups.