You are reading a single comment by @jjok and its replies. Click here to read the full conversation.
  • Hi. I'm trying to read from a PIR sensor. I'm aware that the sensor requires 5V, so I'm using a separate power supply for now. The problem is that as soon as I switch connect the power, the signal constantly detected by the pin. Even if I just touch a screwdriver to the pin, instead of using the sensor, a signal is detected.

    Am I doing something wrong?

    setWatch(function() {
      console.log("Movement detected");
    }, D1, {repeat:true, edge:"rising"});
    

    Thanks.

About

Avatar for jjok @jjok started