added PIR motion detector