sleep.sleepInterrupt(0,LOW); //sleep for: sleepTime
Considering the pin is low(movement detected) does this will wake up the processor or sleep it?
I don't know that library
What parameters are expected ( what is 0, and what is LOW)
where in code you say to expect the interrupt is triggered on pin 2?
What I know about interrupts you need to tell were the interrupt pin is attached.
Shouldn't be something like
sleep.sleepInterrupt(2,HIGH); //sleep for: sleepTime