An IR sensor (Infrared sensor) is an electronic device that detects infrared radiation (IR) from objects in its surroundings. It can be used to sense heat, motion, proximity, or flame, depending on its design and application. IR sensors are widely used in consumer electronics, robotics, industrial automation, and security systems.