I found a PIR(i think) sensor and a ir-led in an old toy. I tinkered a bit but keep ending up with ~1018 as input. even if the led is on/off/my hand is close/far away.
the PIR looks like this. http://cognoscis.files.wordpress.com/2008/10/tsop11.jpg
i read this to know where to connect the pins. http://cognoscis.com/tag/ir/
the code is here: http://pastie.org/954099
the only time the input changed was when i plugged some other cable to something else. but it was only lowered to ~1015.
can someone point me in the right direction please?