An IR sensor is an electronic device that emits and detects IR radiations in order to sense the changes that occur in their surroundings.