I am a newbie of the Arduino context and i am experiencing the potentiality of this project. I thought to implement a lamp controller using a relay module and a pir sensor. I bought from www.robotstore.it the following parts: SE-10 pir sensor and DFRobot relay module. The pir sensor works well if I try to blink a led, but I have a lot of problem with the control of the lamp. The lamp turns on when the sketch detects a motion and turns off after an inactivity period, obviously. After turning off the lamp I notice a strange behavior of the sensor. In fact, the sensor detects motion for some time. How I can avoid this unwanted behavior? Thanks for your interest.