2 Replies Latest reply on May 3, 2017 3:24 PM by Intel Corporation

    Intel edison breakout board - pir sensor (GPIO connect)


      How can i connect the PIR montion sensor to intel edison breakout board?


      (1) connect sensor, intel edison breakout board


      I used onoff source of node.js modules


      var sleep = require('sleep');

      var Gpio = require('onoff').Gpio,

            pir = new Gpio(165, 'in', 'both');



      pir.watch(function(err, value) {

      //      sleep.msleep(100);

              if (err) exit();

                  console.log('Intruder detected : '+ value);




      I received invalid result




      Please advise me what to do!!