Detects direction of movement using PIR sensors.