Hello and welcome. Please take a few minutes and read How to get the best out of this forum . If you follow the recommendations there, you will make it possible for others to help you.
Despite your confidence, the wiring is the most likely suspect. Please post a hand drawn wiring diagram, with all connections, pins and parts clearly labeled.
Identify the Arduino, and also, post a link to the product page and/or data sheet of the IR sensor.