long range ir detector

When you don't want sunlight trigger false alarm you could send a coded signal and react only if the returned signal has the same pattern. ( e.g. 101 101 101)