hello all
As you will probably work out, I am a newbie at this
I have an arduino uno which is powered by a 9v battery, I had a button in circuit to put an input into pin 2 and this seemed to work for ever. I have now replaced the button with a 287-18001 motion detector which seemed to work well but the battery drained very quickly. If I remove the motion detector and replace the switch it all works ok again. why is this?