syncing up the IR sensor