Infrared technology is like my electric abilities. It sends out signals that bounce back after hitting an object. In the case of Face ID, these signals are sent out in a pattern that recognizes facial features. Even in complete darkness, this process still works.