Welcome to EP!
Your project is doable but, for reliable operation, the circuit will need a LOT of components. The main problem is that there are many infra-red sources all around us, including sunlight, incandescent lamps, human/animal bodies, TV remotes etc; so the circuit has to discriminate...