IR remote and sensor

Would be useful if you provide a link to an example.