I bought a Grove - PIR Motion Sensor. I connected it to my GrovePi board on plug D8. I tried to get input by following scratch statements:
when space key pressed
broadcast join distance 8
say distance sensor value
Only the value 0 is coming back after pressing the space bar.
Is there another way to use pir sensor with scratch or is this sensor just useable with python?
Hi Cleo,
i sift through the commands I found on git-hub: https://raw.githubusercontent.com/CleoQc/Utilities/master/Scratch_Commands/grovepi.png.
I couldn’t find a command like “PIR”, “Infrared” or something similar. So I took “distance” as the plausiblest of all given commands. Please tell me, which is the correct command for the pir motion sensor.
Best regards,
Martin