Best Answer TechnoGuy, 19 September 2015 - 09:10 AM
Hi. I found documentation on that sensor here: http://simplytronics...?title=ST-00081
It just says that the OUT pin goes HIGH when motion is detected and that it remains LOW when there is no motion. I really don't think there's much more to it than that - so I don't follow what you're asking (i.e. "read the variable input values").
The documentation includes some demo Arduino code which just implements a wait loop & checks the pin every 200 ms.
On the Netduino you can do better than that by implementing code that's event-driven (i.e. InterruptPort). A fellow named Dave Vanderwekke has a nice tutorial / code sample (which I think you could adapt to your purposes) here:
http://www.davevande...-to-use-buttons
Just substitute your sensor for the button (in his example). You may have to make a few tweaks.
Now, if you're looking to get distance information, that's probably NOT the right sensor to be using... There are other PIR sensors out there that return distance information as well as detecting motion/obstacles. Check out a company called MaxBotix. Their distance-measuring sensors have several more pins and report distance using either serial or PWM. Here's a datasheet for one of their modules:
http://www.maxbotix....Z_Datasheet.pdf