IR sensors work by emitting an infrared beam and then measuring the reflection or absorption of that beam. The data collected is then analyzed to determine temperature, movement, or other physiological parameters. Some advanced IR sensors can also capture detailed images, which can be used for diagnostic purposes.