PIR implementation and motion sensor working.