IR sensors are basically electronic devices which are used to sense the changes that occur in their surroundings. The change may be in color, temperature, moisture, sound, heat etc. They sense the change and work accordingly. In IR sensor the there is emitter and detector. Emitter emits the IR rays and detector detects it.